mirror of
https://github.com/home-assistant/core.git
synced 2025-07-27 15:17:35 +00:00
Bump hatasmota to 0.0.32 (#43360)
This commit is contained in:
parent
4205367aa7
commit
0bf9734af1
@ -3,7 +3,7 @@
|
|||||||
"name": "Tasmota (beta)",
|
"name": "Tasmota (beta)",
|
||||||
"config_flow": true,
|
"config_flow": true,
|
||||||
"documentation": "https://www.home-assistant.io/integrations/tasmota",
|
"documentation": "https://www.home-assistant.io/integrations/tasmota",
|
||||||
"requirements": ["hatasmota==0.0.31"],
|
"requirements": ["hatasmota==0.0.32"],
|
||||||
"dependencies": ["mqtt"],
|
"dependencies": ["mqtt"],
|
||||||
"mqtt": ["tasmota/discovery/#"],
|
"mqtt": ["tasmota/discovery/#"],
|
||||||
"codeowners": ["@emontnemery"]
|
"codeowners": ["@emontnemery"]
|
||||||
|
@ -741,7 +741,7 @@ hass-nabucasa==0.38.0
|
|||||||
hass_splunk==0.1.1
|
hass_splunk==0.1.1
|
||||||
|
|
||||||
# homeassistant.components.tasmota
|
# homeassistant.components.tasmota
|
||||||
hatasmota==0.0.31
|
hatasmota==0.0.32
|
||||||
|
|
||||||
# homeassistant.components.jewish_calendar
|
# homeassistant.components.jewish_calendar
|
||||||
hdate==0.9.12
|
hdate==0.9.12
|
||||||
|
@ -379,7 +379,7 @@ hangups==0.4.11
|
|||||||
hass-nabucasa==0.38.0
|
hass-nabucasa==0.38.0
|
||||||
|
|
||||||
# homeassistant.components.tasmota
|
# homeassistant.components.tasmota
|
||||||
hatasmota==0.0.31
|
hatasmota==0.0.32
|
||||||
|
|
||||||
# homeassistant.components.jewish_calendar
|
# homeassistant.components.jewish_calendar
|
||||||
hdate==0.9.12
|
hdate==0.9.12
|
||||||
|
@ -22,6 +22,25 @@ async def test_subscribing_config_topic(hass, mqtt_mock, setup_tasmota):
|
|||||||
assert call_args[2] == 0
|
assert call_args[2] == 0
|
||||||
|
|
||||||
|
|
||||||
|
async def test_future_discovery_message(hass, mqtt_mock, caplog):
|
||||||
|
"""Test we handle backwards compatible discovery messages."""
|
||||||
|
config = copy.deepcopy(DEFAULT_CONFIG)
|
||||||
|
config["future_option"] = "BEST_SINCE_SLICED_BREAD"
|
||||||
|
config["so"]["another_future_option"] = "EVEN_BETTER"
|
||||||
|
|
||||||
|
with patch(
|
||||||
|
"homeassistant.components.tasmota.discovery.tasmota_get_device_config",
|
||||||
|
return_value={},
|
||||||
|
) as mock_tasmota_get_device_config:
|
||||||
|
await setup_tasmota_helper(hass)
|
||||||
|
|
||||||
|
async_fire_mqtt_message(
|
||||||
|
hass, f"{DEFAULT_PREFIX}/00000049A3BC/config", json.dumps(config)
|
||||||
|
)
|
||||||
|
await hass.async_block_till_done()
|
||||||
|
assert mock_tasmota_get_device_config.called
|
||||||
|
|
||||||
|
|
||||||
async def test_valid_discovery_message(hass, mqtt_mock, caplog):
|
async def test_valid_discovery_message(hass, mqtt_mock, caplog):
|
||||||
"""Test discovery callback called."""
|
"""Test discovery callback called."""
|
||||||
config = copy.deepcopy(DEFAULT_CONFIG)
|
config = copy.deepcopy(DEFAULT_CONFIG)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user