Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions custom_components/wyzeapi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ async def async_setup_entry(hass: HomeAssistant, config_entry: ConfigEntry) -> b
CONF_CLIENT: client,
"key_id": KEY_ID,
"api_key": API_KEY,
"coordinators": {},
}
await setup_coordinators(hass, config_entry, client)

Expand Down
12 changes: 9 additions & 3 deletions custom_components/wyzeapi/lock.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,17 @@ async def async_setup_entry(
if lock.product_model != "YD_BT1"
]
lock_bolts = []
coordinators = hass.data[DOMAIN][config_entry.entry_id].get("coordinators", {})
for lock in all_locks:
if lock.product_model == "YD_BT1":
coordinator = hass.data[DOMAIN][config_entry.entry_id]["coordinators"][
lock.mac
]
coordinator = coordinators.get(lock.mac)
if coordinator is None:
_LOGGER.warning(
"No coordinator found for Lock Bolt %s (%s), skipping",
lock.nickname,
lock.mac,
)
continue
lock_bolts.append(WyzeLockBolt(coordinator))

async_add_entities(locks + lock_bolts, True)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@

[project]
name = "ha-wyzeapi"
version = "0.1.35"
version = "0.1.36"
description = "A Home Assistant integration for Wyze devices"
authors = [{ name = "Katie Mulliken", email = "katie@mulliken.net" }]
license = { text = "Apache-2.0" }
requires-python = ">=3.13.2,<3.14"

dependencies = [
"homeassistant>=2025.5.0",
"wyzeapy>=0.5.30,<0.6.0",
"wyzeapy>=0.5.31,<0.6.0",
]

[build-system]
Expand Down
Loading