Skip parsing Flume sensors without location (#79456)
This commit is contained in:
parent
653620345c
commit
069818940e
1 changed files with 4 additions and 1 deletions
|
@ -40,7 +40,10 @@ async def async_setup_entry(
|
||||||
|
|
||||||
flume_entity_list = []
|
flume_entity_list = []
|
||||||
for device in flume_devices.device_list:
|
for device in flume_devices.device_list:
|
||||||
if device[KEY_DEVICE_TYPE] != FLUME_TYPE_SENSOR:
|
if (
|
||||||
|
device[KEY_DEVICE_TYPE] != FLUME_TYPE_SENSOR
|
||||||
|
or KEY_DEVICE_LOCATION not in device
|
||||||
|
):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
device_id = device[KEY_DEVICE_ID]
|
device_id = device[KEY_DEVICE_ID]
|
||||||
|
|
Loading…
Add table
Reference in a new issue