Bump hatasmota to 0.0.32 (#43360)
This commit is contained in:
parent
4205367aa7
commit
0bf9734af1
4 changed files with 22 additions and 3 deletions
|
@ -3,7 +3,7 @@
|
|||
"name": "Tasmota (beta)",
|
||||
"config_flow": true,
|
||||
"documentation": "https://www.home-assistant.io/integrations/tasmota",
|
||||
"requirements": ["hatasmota==0.0.31"],
|
||||
"requirements": ["hatasmota==0.0.32"],
|
||||
"dependencies": ["mqtt"],
|
||||
"mqtt": ["tasmota/discovery/#"],
|
||||
"codeowners": ["@emontnemery"]
|
||||
|
|
|
@ -741,7 +741,7 @@ hass-nabucasa==0.38.0
|
|||
hass_splunk==0.1.1
|
||||
|
||||
# homeassistant.components.tasmota
|
||||
hatasmota==0.0.31
|
||||
hatasmota==0.0.32
|
||||
|
||||
# homeassistant.components.jewish_calendar
|
||||
hdate==0.9.12
|
||||
|
|
|
@ -379,7 +379,7 @@ hangups==0.4.11
|
|||
hass-nabucasa==0.38.0
|
||||
|
||||
# homeassistant.components.tasmota
|
||||
hatasmota==0.0.31
|
||||
hatasmota==0.0.32
|
||||
|
||||
# homeassistant.components.jewish_calendar
|
||||
hdate==0.9.12
|
||||
|
|
|
@ -22,6 +22,25 @@ async def test_subscribing_config_topic(hass, mqtt_mock, setup_tasmota):
|
|||
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):
|
||||
"""Test discovery callback called."""
|
||||
config = copy.deepcopy(DEFAULT_CONFIG)
|
||||
|
|
Loading…
Add table
Reference in a new issue