Skip to content

Commit 8ebb6ca

Browse files
authored
Update __init__.py
Added reset work mode.
1 parent 39170c3 commit 8ebb6ca

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

custom_components/eleven_energy/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,13 @@ async def handle_set_workmode(call: ServiceCall):
8181
supports_response=SupportsResponse.NONE,
8282
)
8383

84+
hass.services.register(
85+
DOMAIN,
86+
"set_work_mode_reset",
87+
handle_set_workmode,
88+
supports_response=SupportsResponse.NONE,
89+
)
90+
8491
_LOGGER.info("Registered Eleven Energy services")
8592

8693
return True

0 commit comments

Comments
 (0)