mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 12:17:07 +00:00
Apply feedback on bond integration (#37921)
This commit is contained in:
parent
a6129467aa
commit
aaf084d713
@ -26,19 +26,19 @@ async def async_setup_entry(
|
||||
"""Set up Bond light devices."""
|
||||
hub: BondHub = hass.data[DOMAIN][entry.entry_id]
|
||||
|
||||
lights = [
|
||||
lights: List[Entity] = [
|
||||
BondLight(hub, device)
|
||||
for device in hub.devices
|
||||
if device.type == DeviceTypes.CEILING_FAN and device.supports_light()
|
||||
]
|
||||
async_add_entities(lights, True)
|
||||
|
||||
fireplaces = [
|
||||
fireplaces: List[Entity] = [
|
||||
BondFireplace(hub, device)
|
||||
for device in hub.devices
|
||||
if device.type == DeviceTypes.FIREPLACE
|
||||
]
|
||||
async_add_entities(fireplaces, True)
|
||||
|
||||
async_add_entities(lights + fireplaces, True)
|
||||
|
||||
|
||||
class BondLight(BondEntity, LightEntity):
|
||||
|
Loading…
x
Reference in New Issue
Block a user