Provide feedback when toggling the light
This commit is contained in:
parent
5107b8764a
commit
54e1cee588
1 changed files with 1 additions and 0 deletions
1
bot.py
1
bot.py
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue