changed to .text...

This commit is contained in:
rich committed 2019-11-27 14:01:54 -05:00
1 parent 583a164a33
commit 490d43a385
1 file changed
+1 -1
+1 -1
View File
@@ -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.