Merge of nested IF-IF cases - E-G (#48367)
This commit is contained in:
parent
786023fce4
commit
0d595a2845
13 changed files with 257 additions and 246 deletions
|
@ -92,13 +92,11 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
|||
|
||||
for elem in data.data:
|
||||
|
||||
if exclude_feeds is not None:
|
||||
if int(elem["id"]) in exclude_feeds:
|
||||
continue
|
||||
if exclude_feeds is not None and int(elem["id"]) in exclude_feeds:
|
||||
continue
|
||||
|
||||
if include_only_feeds is not None:
|
||||
if int(elem["id"]) not in include_only_feeds:
|
||||
continue
|
||||
if include_only_feeds is not None and int(elem["id"]) not in include_only_feeds:
|
||||
continue
|
||||
|
||||
name = None
|
||||
if sensor_names is not None:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue