Bump hatasmota to 0.7.1 (#99818)

pull/99955/head
Erik Montnemery 2023-09-08 21:01:34 +02:00 committed by GitHub
parent f0ee20c15c
commit b317e04cf1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 3 deletions

View File

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

View File

@ -29,7 +29,7 @@ DoorBirdPy==2.1.0
HAP-python==4.7.1
# homeassistant.components.tasmota
HATasmota==0.7.0
HATasmota==0.7.1
# homeassistant.components.mastodon
Mastodon.py==1.5.1

View File

@ -28,7 +28,7 @@ DoorBirdPy==2.1.0
HAP-python==4.7.1
# homeassistant.components.tasmota
HATasmota==0.7.0
HATasmota==0.7.1
# homeassistant.components.doods
# homeassistant.components.generic

View File

@ -626,6 +626,16 @@ async def test_battery_sensor_state_via_mqtt(
"unit_of_measurement": "%",
}
# Test polled state update
async_fire_mqtt_message(
hass,
"tasmota_49A3BC/stat/STATUS11",
'{"StatusSTS":{"BatteryPercentage":50}}',
)
await hass.async_block_till_done()
state = hass.states.get("sensor.tasmota_battery_level")
assert state.state == "50"
@pytest.mark.parametrize("status_sensor_disabled", [False])
async def test_single_shot_status_sensor_state_via_mqtt(