Provide feedback when toggling the light

This commit is contained in:
Davide Depau 2023-09-15 00:57:47 +02:00
parent 5107b8764a
commit 54e1cee588

1
bot.py
View file

@ -45,6 +45,7 @@ class Bot:
return await resp.text()
async def _send_item_command(self, command):
print(f"Sending command {command}")
url = f"{self.openhab_url}/rest/items/{self.openhab_item}"
async with aiohttp.ClientSession() as session:
async with session.post(