mirror of
https://github.com/home-assistant/core.git
synced 2025-08-06 14:15:12 +02:00
Apply suggestions from code review
Co-authored-by: G Johansson <goran.johansson@shiftit.se>
This commit is contained in:
@@ -26,10 +26,8 @@ async def async_setup_entry(
|
|||||||
) -> None:
|
) -> None:
|
||||||
"""Set up discovered binary sensors."""
|
"""Set up discovered binary sensors."""
|
||||||
async_add_entities(
|
async_add_entities(
|
||||||
(
|
HassAqualinkBinarySensor(dev)
|
||||||
HassAqualinkBinarySensor(dev)
|
for dev in hass.data[AQUALINK_DOMAIN][BINARY_SENSOR_DOMAIN]
|
||||||
for dev in hass.data[AQUALINK_DOMAIN][BINARY_SENSOR_DOMAIN]
|
|
||||||
),
|
|
||||||
True,
|
True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user