From 490d43a385697c8b508725b5db6d73088ee2f419 Mon Sep 17 00:00:00 2001 From: Rich O Date: Wed, 27 Nov 2019 14:01:54 -0500 Subject: [PATCH] changed to .text... --- r0b3bot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/r0b3bot.py b/r0b3bot.py index ad7e4af..a8d2f64 100644 --- a/r0b3bot.py +++ b/r0b3bot.py @@ -231,7 +231,7 @@ async def printstat(ctx): print(" - Getting Printer Light Status") #work_lights = remote.get_state(hassapi, 'switch.work_lights') work_lights = requests.get(hassURL, headers=hassHEADERS) - print(f" Response from HomeAssistant: {work_lights}") + print(f" Response from HomeAssistant: {work_lights.text}") # Making sure that the API request succeeded. If it has, there will be a state attribute added to # work_lights. -- 2.39.5