Mill gen 3 cloud, support precision halves for gen 3 heaters (#77932)

* Update pymill to latest version

* Use float with PRECISION_HALVES for Mill Gen 3 cloud connected heaters
This commit is contained in:
Ståle Storø Hauknes 2022-09-07 07:25:23 +02:00 committed by GitHub
parent 35cdad943b
commit 79d2c87844
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 6 additions and 5 deletions

View file

@ -92,7 +92,6 @@ class MillHeater(CoordinatorEntity, ClimateEntity):
_attr_fan_modes = [FAN_ON, FAN_OFF]
_attr_max_temp = MAX_TEMP
_attr_min_temp = MIN_TEMP
_attr_target_temperature_step = PRECISION_WHOLE
_attr_temperature_unit = TEMP_CELSIUS
def __init__(self, coordinator, heater):
@ -120,8 +119,10 @@ class MillHeater(CoordinatorEntity, ClimateEntity):
self._attr_supported_features = (
ClimateEntityFeature.TARGET_TEMPERATURE | ClimateEntityFeature.FAN_MODE
)
self._attr_target_temperature_step = PRECISION_WHOLE
else:
self._attr_supported_features = ClimateEntityFeature.TARGET_TEMPERATURE
self._attr_target_temperature_step = PRECISION_HALVES
self._update_attr(heater)
@ -130,7 +131,7 @@ class MillHeater(CoordinatorEntity, ClimateEntity):
if (temperature := kwargs.get(ATTR_TEMPERATURE)) is None:
return
await self.coordinator.mill_data_connection.set_heater_temp(
self._id, int(temperature)
self._id, float(temperature)
)
await self.coordinator.async_request_refresh()

View file

@ -2,7 +2,7 @@
"domain": "mill",
"name": "Mill",
"documentation": "https://www.home-assistant.io/integrations/mill",
"requirements": ["millheater==0.9.0", "mill-local==0.1.1"],
"requirements": ["millheater==0.10.0", "mill-local==0.1.1"],
"codeowners": ["@danielhiversen"],
"config_flow": true,
"iot_class": "local_polling",

View file

@ -1061,7 +1061,7 @@ micloud==0.5
mill-local==0.1.1
# homeassistant.components.mill
millheater==0.9.0
millheater==0.10.0
# homeassistant.components.minio
minio==5.0.10

View file

@ -760,7 +760,7 @@ micloud==0.5
mill-local==0.1.1
# homeassistant.components.mill
millheater==0.9.0
millheater==0.10.0
# homeassistant.components.minio
minio==5.0.10