Pylint 2.9.3 (#52972)

Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com>
This commit is contained in:
Daniel Hjelseth Høyer 2021-07-15 06:44:57 +02:00 committed by GitHub
parent db8db18b54
commit fbad453c89
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
92 changed files with 182 additions and 213 deletions

View file

@ -78,8 +78,8 @@ async def async_setup_platform(
device_data = hass.data[DOMAIN][DATA_DEVICE]
async_add_entities(
SwitcherSensorEntity(device_data, attribute, SENSORS[attribute])
for attribute in SENSORS
SwitcherSensorEntity(device_data, attribute, sensor)
for attribute, sensor in SENSORS.items()
)