Address PR cleanup for nest device triggers (#43961)
This commit is contained in:
parent
c4426a73b3
commit
0670124e8d
2 changed files with 6 additions and 6 deletions
|
@ -54,7 +54,7 @@ async def async_get_device_trigger_types(
|
|||
|
||||
# Determine the set of event types based on the supported device traits
|
||||
trigger_types = []
|
||||
for trait in nest_device.traits.keys():
|
||||
for trait in nest_device.traits:
|
||||
trigger_type = DEVICE_TRAIT_TRIGGER_MAP.get(trait)
|
||||
if trigger_type:
|
||||
trigger_types.append(trigger_type)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue