Skip to content

Commit

Permalink
Add MAC Adress to Homee
Browse files Browse the repository at this point in the history
  • Loading branch information
Taraman17 committed Dec 3, 2024
1 parent f2cea19 commit 1839d29
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions custom_components/homee/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,9 +165,9 @@ async def handle_update_entity(call: ServiceCall):
device_registry = dr.async_get(hass)
device_registry.async_get_or_create(
config_entry_id=entry.entry_id,
# TODO: figure out how to derive the MAC address -
# will need to update pyHomee?
# connections={(dr.CONNECTION_NETWORK_MAC, entry.mac)},
connections={
(dr.CONNECTION_NETWORK_MAC, dr.format_mac(homee.settings.mac_address))
},
identifiers={(DOMAIN, homee.device_id)},
manufacturer="homee",
name=homee.settings.homee_name,
Expand All @@ -176,8 +176,6 @@ async def handle_update_entity(call: ServiceCall):
hw_version="TBD",
)

# async_setup_devices(hass, homee, entry)

# Forward entry setup to the platforms
await hass.config_entries.async_forward_entry_setups(entry, PLATFORMS)

Expand Down

0 comments on commit 1839d29

Please sign in to comment.