diff --git a/r0b3bot.py b/r0b3bot.py index f806adc..947011a 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -264,7 +264,7 @@ async def printstat(ctx): # REST API call to home assistant to turn the light off. #remote.call_service(hassapi, 'switch', 'turn_on', {'entity_id':'{}'.format(HASS_LIGHT)}) hassAPIRUL = HASS_IP_ADDRESS + "/api/services/switch/turn_on" - payload = { "entity_id": '"' + HASS_LIGHT + '"' } + payload = { "entity_id": HASS_LIGHT } print(f" - Payload String: {payload}") requests.post(hassAPIURL, data=payload, headers=hassHEADERS) except: