mirror of
https://github.com/home-assistant/core.git
synced 2025-07-09 06:17:07 +00:00
Bump eq3btsmart to 1.2.1 (#130297)
This commit is contained in:
parent
73929e6791
commit
3a37ff13a6
@ -143,6 +143,9 @@ class Eq3Climate(Eq3Entity, ClimateEntity):
|
|||||||
def _async_on_status_updated(self) -> None:
|
def _async_on_status_updated(self) -> None:
|
||||||
"""Handle updated status from the thermostat."""
|
"""Handle updated status from the thermostat."""
|
||||||
|
|
||||||
|
if self._thermostat.status is None:
|
||||||
|
return
|
||||||
|
|
||||||
self._target_temperature = self._thermostat.status.target_temperature.value
|
self._target_temperature = self._thermostat.status.target_temperature.value
|
||||||
self._attr_hvac_mode = EQ_TO_HA_HVAC[self._thermostat.status.operation_mode]
|
self._attr_hvac_mode = EQ_TO_HA_HVAC[self._thermostat.status.operation_mode]
|
||||||
self._attr_current_temperature = self._get_current_temperature()
|
self._attr_current_temperature = self._get_current_temperature()
|
||||||
@ -154,13 +157,16 @@ class Eq3Climate(Eq3Entity, ClimateEntity):
|
|||||||
def _async_on_device_updated(self) -> None:
|
def _async_on_device_updated(self) -> None:
|
||||||
"""Handle updated device data from the thermostat."""
|
"""Handle updated device data from the thermostat."""
|
||||||
|
|
||||||
|
if self._thermostat.device_data is None:
|
||||||
|
return
|
||||||
|
|
||||||
device_registry = dr.async_get(self.hass)
|
device_registry = dr.async_get(self.hass)
|
||||||
if device := device_registry.async_get_device(
|
if device := device_registry.async_get_device(
|
||||||
connections={(CONNECTION_BLUETOOTH, self._eq3_config.mac_address)},
|
connections={(CONNECTION_BLUETOOTH, self._eq3_config.mac_address)},
|
||||||
):
|
):
|
||||||
device_registry.async_update_device(
|
device_registry.async_update_device(
|
||||||
device.id,
|
device.id,
|
||||||
sw_version=self._thermostat.device_data.firmware_version,
|
sw_version=str(self._thermostat.device_data.firmware_version),
|
||||||
serial_number=self._thermostat.device_data.device_serial.value,
|
serial_number=self._thermostat.device_data.device_serial.value,
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -265,7 +271,7 @@ class Eq3Climate(Eq3Entity, ClimateEntity):
|
|||||||
self.async_write_ha_state()
|
self.async_write_ha_state()
|
||||||
|
|
||||||
try:
|
try:
|
||||||
await self._thermostat.async_set_temperature(self._target_temperature)
|
await self._thermostat.async_set_temperature(temperature)
|
||||||
except Eq3Exception:
|
except Eq3Exception:
|
||||||
_LOGGER.error(
|
_LOGGER.error(
|
||||||
"[%s] Failed setting temperature", self._eq3_config.mac_address
|
"[%s] Failed setting temperature", self._eq3_config.mac_address
|
||||||
|
@ -23,5 +23,5 @@
|
|||||||
"iot_class": "local_polling",
|
"iot_class": "local_polling",
|
||||||
"loggers": ["eq3btsmart"],
|
"loggers": ["eq3btsmart"],
|
||||||
"quality_scale": "silver",
|
"quality_scale": "silver",
|
||||||
"requirements": ["eq3btsmart==1.2.0", "bleak-esphome==1.1.0"]
|
"requirements": ["eq3btsmart==1.2.1", "bleak-esphome==1.1.0"]
|
||||||
}
|
}
|
||||||
|
@ -860,7 +860,7 @@ epion==0.0.3
|
|||||||
epson-projector==0.5.1
|
epson-projector==0.5.1
|
||||||
|
|
||||||
# homeassistant.components.eq3btsmart
|
# homeassistant.components.eq3btsmart
|
||||||
eq3btsmart==1.2.0
|
eq3btsmart==1.2.1
|
||||||
|
|
||||||
# homeassistant.components.esphome
|
# homeassistant.components.esphome
|
||||||
esphome-dashboard-api==1.2.3
|
esphome-dashboard-api==1.2.3
|
||||||
|
@ -729,7 +729,7 @@ epion==0.0.3
|
|||||||
epson-projector==0.5.1
|
epson-projector==0.5.1
|
||||||
|
|
||||||
# homeassistant.components.eq3btsmart
|
# homeassistant.components.eq3btsmart
|
||||||
eq3btsmart==1.2.0
|
eq3btsmart==1.2.1
|
||||||
|
|
||||||
# homeassistant.components.esphome
|
# homeassistant.components.esphome
|
||||||
esphome-dashboard-api==1.2.3
|
esphome-dashboard-api==1.2.3
|
||||||
|
Loading…
x
Reference in New Issue
Block a user