Changed to be run all the time, on/off switch in homeassistant controls notification
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user