mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Add device HMIP-eTRV-C to HomematicIP (#21612)
* Update dependencies * Add additional device HMIP-eTRV-C add valveActualTemperature to HeatingThermostats (HMIP-eTRV-C, HMIP-eTRV, HMIP-eTRV-2) * Removed HomematicipThermostatTemperatureSensor already in climate
This commit is contained in:
committed by
Rohan Kapoor
parent
1308ead8d6
commit
3032283b99
@@ -5,7 +5,7 @@ from homeassistant.components.homematicip_cloud import (
|
||||
DOMAIN as HMIPC_DOMAIN, HMIPC_HAPID, HomematicipGenericDevice)
|
||||
from homeassistant.const import (
|
||||
DEVICE_CLASS_HUMIDITY, DEVICE_CLASS_ILLUMINANCE, DEVICE_CLASS_TEMPERATURE,
|
||||
TEMP_CELSIUS, POWER_WATT)
|
||||
POWER_WATT, TEMP_CELSIUS)
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -27,7 +27,8 @@ async def async_setup_platform(
|
||||
async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
"""Set up the HomematicIP Cloud sensors from a config entry."""
|
||||
from homematicip.aio.device import (
|
||||
AsyncHeatingThermostat, AsyncTemperatureHumiditySensorWithoutDisplay,
|
||||
AsyncHeatingThermostat, AsyncHeatingThermostatCompact,
|
||||
AsyncTemperatureHumiditySensorWithoutDisplay,
|
||||
AsyncTemperatureHumiditySensorDisplay, AsyncMotionDetectorIndoor,
|
||||
AsyncTemperatureHumiditySensorOutdoor,
|
||||
AsyncMotionDetectorPushButton, AsyncLightSensor,
|
||||
@@ -37,7 +38,8 @@ async def async_setup_entry(hass, config_entry, async_add_entities):
|
||||
home = hass.data[HMIPC_DOMAIN][config_entry.data[HMIPC_HAPID]].home
|
||||
devices = [HomematicipAccesspointStatus(home)]
|
||||
for device in home.devices:
|
||||
if isinstance(device, AsyncHeatingThermostat):
|
||||
if isinstance(device, (AsyncHeatingThermostat,
|
||||
AsyncHeatingThermostatCompact)):
|
||||
devices.append(HomematicipHeatingThermostat(home, device))
|
||||
if isinstance(device, (AsyncTemperatureHumiditySensorDisplay,
|
||||
AsyncTemperatureHumiditySensorWithoutDisplay,
|
||||
|
||||
Reference in New Issue
Block a user