mirror of
https://github.com/home-assistant/core.git
synced 2025-07-21 20:27:08 +00:00
Change function name in tfiac (#110466)
This commit is contained in:
parent
09f1ec78a5
commit
103aab2218
@ -63,7 +63,7 @@ ON_MODE = "is_on"
|
|||||||
async def async_setup_platform(
|
async def async_setup_platform(
|
||||||
hass: HomeAssistant,
|
hass: HomeAssistant,
|
||||||
config: ConfigType,
|
config: ConfigType,
|
||||||
async_add_devices: AddEntitiesCallback,
|
async_add_entities: AddEntitiesCallback,
|
||||||
discovery_info: DiscoveryInfoType | None = None,
|
discovery_info: DiscoveryInfoType | None = None,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up the TFIAC climate device."""
|
"""Set up the TFIAC climate device."""
|
||||||
@ -73,7 +73,7 @@ async def async_setup_platform(
|
|||||||
except futures.TimeoutError:
|
except futures.TimeoutError:
|
||||||
_LOGGER.error("Unable to connect to %s", config[CONF_HOST])
|
_LOGGER.error("Unable to connect to %s", config[CONF_HOST])
|
||||||
return
|
return
|
||||||
async_add_devices([TfiacClimate(hass, tfiac_client)])
|
async_add_entities([TfiacClimate(hass, tfiac_client)])
|
||||||
|
|
||||||
|
|
||||||
class TfiacClimate(ClimateEntity):
|
class TfiacClimate(ClimateEntity):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user