From 895c1b51dea53bd93c8173bfaa272c0a0cebc169 Mon Sep 17 00:00:00 2001 From: Rich Oberholtzer Date: Fri, 22 Nov 2019 15:31:43 -0500 Subject: [PATCH] thing i was calling requests. incorrectly --- r0b3bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r0b3bot.py b/r0b3bot.py index 62640b6..f8c1a36 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -230,7 +230,7 @@ async def printstat(ctx): # Try to get the status of the 3D printer light print(" - Getting Printer Light Status") #work_lights = remote.get_state(hassapi, 'switch.work_lights') - work_lights = requests.get(hassURL, hassHEADERS) + work_lights = requests.request('GET', hassURL, hassHEADERS) print(f" Response from HomeAssistant: {work_lights}") # Making sure that the API request succeeded. If it has, there will be a state attribute added to -- 2.39.5