Add Home Assistant

This commit is contained in:
Steffen Lange 2023-08-17 11:46:27 +02:00
parent 1427899bab
commit e0a07c74d0

14
modules/HomeAssistant.php Normal file
View file

@ -0,0 +1,14 @@
<?php
class HomeAssistant extends PatchBase {
function __construct() {
parent::__construct('Home Assistant Authors', 'Home Assistant Core', 'https://www.home-assistant.io/');
}
function check() : bool {
if ($this->fetch_json('https://api.github.com/repos/home-assistant/core/releases/latest'))
return $this->parse_json('tag_name');
return false;
}
}
?>