mirror of
https://github.com/home-assistant/core.git
synced 2025-11-17 15:00:12 +00:00
Use platform enum consistently in fibaro integration (#69035)
This commit is contained in:
@@ -11,7 +11,12 @@ from homeassistant.components.climate.const import (
|
||||
HVACMode,
|
||||
)
|
||||
from homeassistant.config_entries import ConfigEntry
|
||||
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS, TEMP_FAHRENHEIT
|
||||
from homeassistant.const import (
|
||||
ATTR_TEMPERATURE,
|
||||
TEMP_CELSIUS,
|
||||
TEMP_FAHRENHEIT,
|
||||
Platform,
|
||||
)
|
||||
from homeassistant.core import HomeAssistant
|
||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||
|
||||
@@ -101,7 +106,9 @@ async def async_setup_entry(
|
||||
async_add_entities(
|
||||
[
|
||||
FibaroThermostat(device)
|
||||
for device in hass.data[DOMAIN][entry.entry_id][FIBARO_DEVICES]["climate"]
|
||||
for device in hass.data[DOMAIN][entry.entry_id][FIBARO_DEVICES][
|
||||
Platform.CLIMATE
|
||||
]
|
||||
],
|
||||
True,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user