PatchBot/modules/ESPHome.php
2023-08-17 11:46:07 +02:00

14 lines
324 B
PHP

<?php
class ESPHome extends PatchBase {
function __construct() {
parent::__construct('Jesse Hills', 'ESPHome', 'https://esphome.io/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/esphome/esphome/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>