We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e297dd4 commit 75e1a61Copy full SHA for 75e1a61
1 file changed
kasatk/__main__.py
@@ -172,8 +172,8 @@ async def _power_callback(self):
172
await (self.bulb.turn_off() if self.bulb.is_on else self.bulb.turn_on())
173
await self.bulb.update()
174
finally:
175
- self.power_button["relief"] = "sunken" if is_on else "raised"
176
- self.power_button["text"] = "Turn Off" if is_on else "Turn On"
+ self.power_button["relief"] = "sunken" if self.bulb.is_on else "raised"
+ self.power_button["text"] = "Turn Off" if self.bulb.is_on else "Turn On"
177
self.power_button["state"] = tkinter.NORMAL
178
179
@classmethod
0 commit comments