Skip to content

Commit

Permalink
Update switch.py (#103)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdreamerz authored Feb 4, 2022
1 parent 937bbb0 commit 95a01d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion custom_components/bhyve/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ async def async_service_handler(service):
return
await getattr(entity, method_name)(**params)

for service in SERVICE_TO_METHOD.items():
for service in SERVICE_TO_METHOD.keys():
schema = SERVICE_TO_METHOD[service]["schema"]
hass.services.async_register(
DOMAIN, service, async_service_handler, schema=schema
Expand Down

0 comments on commit 95a01d8

Please sign in to comment.