PatchBot/modules/ESPHome.php
2024-04-23 19:06:27 +02:00

14 lines
331 B
PHP

<?php
class ESPHome extends PatchBase {
function __construct() {
parent::__construct('ESPHome Developers', '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;
}
}
?>