mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
ESPHome: Use existing property with generated signal string (#91525)
This commit is contained in:
parent
5dcc4d49c8
commit
42b0602190
@ -59,8 +59,9 @@ async def async_setup_entry(
|
||||
await setup_update_entity()
|
||||
return
|
||||
|
||||
signal = f"esphome_{entry_data.entry_id}_on_device_update"
|
||||
unsub = async_dispatcher_connect(hass, signal, setup_update_entity)
|
||||
unsub = async_dispatcher_connect(
|
||||
hass, entry_data.signal_device_updated, setup_update_entity
|
||||
)
|
||||
|
||||
|
||||
class ESPHomeUpdateEntity(CoordinatorEntity[ESPHomeDashboard], UpdateEntity):
|
||||
|
Loading…
x
Reference in New Issue
Block a user