Use list literal without using dict.keys() (#42573)

This commit is contained in:
springstan 2020-10-30 15:19:13 +01:00 committed by GitHub
parent 2dc5c4dd69
commit 92379ad8d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 27 additions and 27 deletions

View file

@ -88,7 +88,7 @@ async def async_setup_entry(
udn = data[CONFIG_ENTRY_UDN]
else:
# any device will do
udn = list(hass.data[DOMAIN][DOMAIN_DEVICES].keys())[0]
udn = list(hass.data[DOMAIN][DOMAIN_DEVICES])[0]
device: Device = hass.data[DOMAIN][DOMAIN_DEVICES][udn]