Use platform enum consistently in fibaro integration (#69035)
This commit is contained in:
parent
853b57e7cf
commit
e894ffecd8
9 changed files with 80 additions and 56 deletions
|
@ -5,6 +5,7 @@ from typing import Any
|
|||
|
||||
from homeassistant.components.scene import Scene
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import Platform
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
|
@ -21,7 +22,9 @@ async def async_setup_entry(
|
|||
async_add_entities(
|
||||
[
|
||||
FibaroScene(scene)
|
||||
for scene in hass.data[DOMAIN][entry.entry_id][FIBARO_DEVICES]["scene"]
|
||||
for scene in hass.data[DOMAIN][entry.entry_id][FIBARO_DEVICES][
|
||||
Platform.SCENE
|
||||
]
|
||||
],
|
||||
True,
|
||||
)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue