mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Sense will not list removed devices (#18410)
* Sense will not list removed devices * quote update
This commit is contained in:
@@ -60,7 +60,8 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||||||
data = hass.data[SENSE_DATA]
|
data = hass.data[SENSE_DATA]
|
||||||
|
|
||||||
sense_devices = data.get_discovered_device_data()
|
sense_devices = data.get_discovered_device_data()
|
||||||
devices = [SenseDevice(data, device) for device in sense_devices]
|
devices = [SenseDevice(data, device) for device in sense_devices
|
||||||
|
if device['tags']['DeviceListAllowed'] == 'true']
|
||||||
add_entities(devices)
|
add_entities(devices)
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user