Refactor HomeMatic / Fix issue with 0.104/dev (#30752)

* Refactor HomeMatic / Fix issue with 0.104/dev

* Fix lock
This commit is contained in:
Pascal Vizeli 2020-01-14 11:26:59 +01:00 committed by GitHub
parent 0d688faa56
commit ced6df158b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 595 additions and 521 deletions

View file

@ -14,7 +14,8 @@ from homeassistant.components.climate.const import (
)
from homeassistant.const import ATTR_TEMPERATURE, TEMP_CELSIUS
from . import ATTR_DISCOVER_DEVICES, HM_ATTRIBUTE_SUPPORT, HMDevice
from .const import ATTR_DISCOVER_DEVICES, HM_ATTRIBUTE_SUPPORT
from .entity import HMDevice
_LOGGER = logging.getLogger(__name__)
@ -44,7 +45,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
new_device = HMThermostat(conf)
devices.append(new_device)
add_entities(devices)
add_entities(devices, True)
class HMThermostat(HMDevice, ClimateDevice):