Skip to content

Commit ea10cdb

Browse files
authored
Remove Shelly redundant device entry check for sleepy devices (home-assistant#157333)
1 parent 6baf77d commit ea10cdb

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

homeassistant/components/shelly/__init__.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -170,9 +170,6 @@ async def _async_setup_block_entry(
170170
device_entry = dev_reg.async_get_device(
171171
connections={(CONNECTION_NETWORK_MAC, dr.format_mac(entry.unique_id))},
172172
)
173-
# https://github.com/home-assistant/core/pull/48076
174-
if device_entry and entry.entry_id not in device_entry.config_entries:
175-
device_entry = None
176173

177174
sleep_period = entry.data.get(CONF_SLEEP_PERIOD)
178175
runtime_data = entry.runtime_data
@@ -283,9 +280,6 @@ async def _async_setup_rpc_entry(hass: HomeAssistant, entry: ShellyConfigEntry)
283280
device_entry = dev_reg.async_get_device(
284281
connections={(CONNECTION_NETWORK_MAC, dr.format_mac(entry.unique_id))},
285282
)
286-
# https://github.com/home-assistant/core/pull/48076
287-
if device_entry and entry.entry_id not in device_entry.config_entries:
288-
device_entry = None
289283

290284
sleep_period = entry.data.get(CONF_SLEEP_PERIOD)
291285
runtime_data = entry.runtime_data

0 commit comments

Comments
 (0)