Bump hatasmota to 0.0.32 (#43360)

This commit is contained in:
Erik Montnemery 2020-11-19 09:07:35 +01:00 committed by GitHub
parent 4205367aa7
commit 0bf9734af1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 22 additions and 3 deletions

View file

@ -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"]

View file

@ -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

View file

@ -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

View file

@ -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)