Bump hatasmota to 0.9.1 (#120649)

pull/120827/head
Erik Montnemery 2024-06-27 12:55:49 +02:00 committed by Franck Nijhof
parent 3022d3bfa0
commit 6849597764
No known key found for this signature in database
GPG Key ID: D62583BA8AB11CA3
5 changed files with 35 additions and 9 deletions

View File

@ -8,5 +8,5 @@
"iot_class": "local_push", "iot_class": "local_push",
"loggers": ["hatasmota"], "loggers": ["hatasmota"],
"mqtt": ["tasmota/discovery/#"], "mqtt": ["tasmota/discovery/#"],
"requirements": ["HATasmota==0.8.0"] "requirements": ["HATasmota==0.9.1"]
} }

View File

@ -190,6 +190,10 @@ SENSOR_DEVICE_CLASS_ICON_MAP: dict[str, dict[str, Any]] = {
DEVICE_CLASS: SensorDeviceClass.ENERGY, DEVICE_CLASS: SensorDeviceClass.ENERGY,
STATE_CLASS: SensorStateClass.TOTAL, STATE_CLASS: SensorStateClass.TOTAL,
}, },
hc.SENSOR_TOTAL_TARIFF: {
DEVICE_CLASS: SensorDeviceClass.ENERGY,
STATE_CLASS: SensorStateClass.TOTAL,
},
hc.SENSOR_TOTAL_START_TIME: {ICON: "mdi:progress-clock"}, hc.SENSOR_TOTAL_START_TIME: {ICON: "mdi:progress-clock"},
hc.SENSOR_TVOC: {ICON: "mdi:air-filter"}, hc.SENSOR_TVOC: {ICON: "mdi:air-filter"},
hc.SENSOR_VOLTAGE: { hc.SENSOR_VOLTAGE: {

View File

@ -22,7 +22,7 @@ DoorBirdPy==2.1.0
HAP-python==4.9.1 HAP-python==4.9.1
# homeassistant.components.tasmota # homeassistant.components.tasmota
HATasmota==0.8.0 HATasmota==0.9.1
# homeassistant.components.mastodon # homeassistant.components.mastodon
Mastodon.py==1.8.1 Mastodon.py==1.8.1

View File

@ -19,7 +19,7 @@ DoorBirdPy==2.1.0
HAP-python==4.9.1 HAP-python==4.9.1
# homeassistant.components.tasmota # homeassistant.components.tasmota
HATasmota==0.8.0 HATasmota==0.9.1
# homeassistant.components.doods # homeassistant.components.doods
# homeassistant.components.generic # homeassistant.components.generic

View File

@ -232,7 +232,10 @@
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2] # name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2]
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Tasmota ENERGY TotalTariff 0', 'friendly_name': 'Tasmota ENERGY TotalTariff 0',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.tasmota_energy_totaltariff_0', 'entity_id': 'sensor.tasmota_energy_totaltariff_0',
@ -247,7 +250,9 @@
'aliases': set({ 'aliases': set({
}), }),
'area_id': None, 'area_id': None,
'capabilities': None, 'capabilities': dict({
'state_class': <SensorStateClass.TOTAL: 'total'>,
}),
'config_entry_id': <ANY>, 'config_entry_id': <ANY>,
'device_class': None, 'device_class': None,
'device_id': <ANY>, 'device_id': <ANY>,
@ -264,7 +269,7 @@
'name': None, 'name': None,
'options': dict({ 'options': dict({
}), }),
'original_device_class': None, 'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
'original_icon': None, 'original_icon': None,
'original_name': 'ENERGY TotalTariff 0', 'original_name': 'ENERGY TotalTariff 0',
'platform': 'tasmota', 'platform': 'tasmota',
@ -272,13 +277,16 @@
'supported_features': 0, 'supported_features': 0,
'translation_key': None, 'translation_key': None,
'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_0', 'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_0',
'unit_of_measurement': None, 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}) })
# --- # ---
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].2 # name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].2
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Tasmota ENERGY TotalTariff 1', 'friendly_name': 'Tasmota ENERGY TotalTariff 1',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.tasmota_energy_totaltariff_1', 'entity_id': 'sensor.tasmota_energy_totaltariff_1',
@ -293,7 +301,9 @@
'aliases': set({ 'aliases': set({
}), }),
'area_id': None, 'area_id': None,
'capabilities': None, 'capabilities': dict({
'state_class': <SensorStateClass.TOTAL: 'total'>,
}),
'config_entry_id': <ANY>, 'config_entry_id': <ANY>,
'device_class': None, 'device_class': None,
'device_id': <ANY>, 'device_id': <ANY>,
@ -310,7 +320,7 @@
'name': None, 'name': None,
'options': dict({ 'options': dict({
}), }),
'original_device_class': None, 'original_device_class': <SensorDeviceClass.ENERGY: 'energy'>,
'original_icon': None, 'original_icon': None,
'original_name': 'ENERGY TotalTariff 1', 'original_name': 'ENERGY TotalTariff 1',
'platform': 'tasmota', 'platform': 'tasmota',
@ -318,13 +328,16 @@
'supported_features': 0, 'supported_features': 0,
'translation_key': None, 'translation_key': None,
'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_1', 'unique_id': '00000049A3BC_sensor_sensor_ENERGY_TotalTariff_1',
'unit_of_measurement': None, 'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}) })
# --- # ---
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].4 # name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].4
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Tasmota ENERGY TotalTariff 0', 'friendly_name': 'Tasmota ENERGY TotalTariff 0',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.tasmota_energy_totaltariff_0', 'entity_id': 'sensor.tasmota_energy_totaltariff_0',
@ -337,7 +350,10 @@
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].5 # name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].5
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Tasmota ENERGY TotalTariff 1', 'friendly_name': 'Tasmota ENERGY TotalTariff 1',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.tasmota_energy_totaltariff_1', 'entity_id': 'sensor.tasmota_energy_totaltariff_1',
@ -350,7 +366,10 @@
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].6 # name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].6
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Tasmota ENERGY TotalTariff 0', 'friendly_name': 'Tasmota ENERGY TotalTariff 0',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.tasmota_energy_totaltariff_0', 'entity_id': 'sensor.tasmota_energy_totaltariff_0',
@ -363,7 +382,10 @@
# name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].7 # name: test_controlling_state_via_mqtt[sensor_config2-entity_ids2-messages2].7
StateSnapshot({ StateSnapshot({
'attributes': ReadOnlyDict({ 'attributes': ReadOnlyDict({
'device_class': 'energy',
'friendly_name': 'Tasmota ENERGY TotalTariff 1', 'friendly_name': 'Tasmota ENERGY TotalTariff 1',
'state_class': <SensorStateClass.TOTAL: 'total'>,
'unit_of_measurement': <UnitOfEnergy.KILO_WATT_HOUR: 'kWh'>,
}), }),
'context': <ANY>, 'context': <ANY>,
'entity_id': 'sensor.tasmota_energy_totaltariff_1', 'entity_id': 'sensor.tasmota_energy_totaltariff_1',