Changed to be run all the time, on/off switch in homeassistant controls notification

This commit is contained in:
Krzysztof Płaczek
2025-01-26 09:28:30 +01:00
parent 61b1cbadbb
commit 8d23c68812
5 changed files with 60 additions and 17 deletions

View File

@@ -1,6 +1,5 @@
<?php
use GuzzleHttp\Client;
use Kplaczek\FoodsiBot\BotService;
use Kplaczek\FoodsiBot\FoodsiService;
use Kplaczek\FoodsiBot\HomeassistantService;
@@ -13,7 +12,7 @@ $_ENV['DEBUG'] = false;
if ($argc === 2 and isset($argv[1]) && $argv[1] === '--debug') {
$_ENV['DEBUG'] = true;
}
$client = new Client();
$client = new GuzzleHttp\Client();
$homeassistant = new HomeassistantService($client);
$foodsi = new FoodsiService($client);
$bot = new BotService($homeassistant, $foodsi);