Skip to content

Commit

Permalink
Merge pull request #67 from peribeir/66-add-support-for-addz-device-t…
Browse files Browse the repository at this point in the history
…ypes-zigbee

66 add support for addz device types zigbee
  • Loading branch information
peribeir authored Oct 15, 2024
2 parents 3871ccb + 32378b5 commit c94b56f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion homepilot/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def async_build_manager(api: HomePilotApi):
manager.devices = {
id_type["did"]: await HomePilotManager.async_build_device(manager.api, id_type)
for id_type in await manager.get_device_ids_types()
if id_type["type"] in ["-1", "1", "2", "3", "4", "5", "8", "10", "73", "74", "75", "76"]
if id_type["type"] in ["-1", "1", "2", "3", "4", "5", "8", "10", "70", "71", "72", "73", "74", "75", "76"]
}
try:
manager.scenes = {
Expand Down Expand Up @@ -66,6 +66,12 @@ async def async_build_device(api, id_type):
return await HomePilotCover.async_build_from_api(api, id_type["did"])
if id_type["type"] == "10":
return await HomePilotWallController.async_build_from_api(api, id_type["did"])
if id_type["type"] == "70":
return await HomePilotLight.async_build_from_api(api, id_type["did"])
if id_type["type"] == "71":
return await HomePilotLight.async_build_from_api(api, id_type["did"])
if id_type["type"] == "72":
return await HomePilotLight.async_build_from_api(api, id_type["did"])
if id_type["type"] == "73":
return await HomePilotLight.async_build_from_api(api, id_type["did"])
if id_type["type"] == "74":
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

setuptools.setup(
name="pyrademacher",
version="0.14.2",
version="0.14.3",
author="Pedro Ribeiro",
author_email="[email protected]",
description="Control devices connected to your Rademacher Homepilot "
Expand Down

0 comments on commit c94b56f

Please sign in to comment.