Skip to content

Commit 800d41f

Browse files
authored
Update kasa_main_GUI.py
1 parent 0646f00 commit 800d41f

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

kasa-nice/kasa_main_GUI.py

+1-9
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,6 @@ async def handle_lightstrip(dev_alias, effect, switch):
8585
switch.value = True
8686

8787

88-
89-
9088
async def handle_metering(dev_alias):
9189
for device in devices.values():
9290
if device.alias == dev_alias and device.has_emeter:
@@ -169,12 +167,6 @@ async def kasa_child_on_off(dev_alias, boolean):
169167
runner.run(device.update())
170168
runner.close()
171169

172-
#with open('log.txt', 'w') as f:
173-
# for device in devices.values():
174-
# for prop in device:
175-
# f.write(str(prop))
176-
# f.write('\n')
177-
178170
with ui.tabs().classes('w-full') as tabs:
179171
one =ui.tab('Devices')
180172
two =ui.tab('Discovery')
@@ -262,4 +254,4 @@ async def kasa_child_on_off(dev_alias, boolean):
262254
with ui.page_sticky(position='bottom-right', x_offset=20, y_offset=20):
263255
ui.button(on_click=footer.toggle).props('fab icon=contact_support')
264256

265-
ui.run(favicon='🏠', native=True, title="Kasa Smart", window_size=(1024, 768))
257+
ui.run(favicon='🏠', native=True, title="Kasa Smart", window_size=(1024, 768))

0 commit comments

Comments
 (0)