Fix Espalexa being detected as Hue Bridge (#29237)

This commit is contained in:
Franck Nijhof authored and Paulus Schoutsen committed 2019-11-30 21:28:42 -08:00
1 parent c0619944fa
commit d5efd0b352
2 files changed
+27 -4

No files matched your search

+20
View File
@@ -230,6 +230,26 @@ async def test_bridge_ssdp_emulated_hue(hass):
)
assert result["type"] == "abort"
assert result["reason"] == "not_hue_bridge"
async def test_bridge_ssdp_espalexa(hass):
"""Test if discovery info is from an Espalexa based device."""
flow = config_flow.HueFlowHandler()
flow.hass = hass
flow.context = {}
result = await flow.async_step_ssdp(
{
"name": "Espalexa (0.0.0.0)",
"host": "0.0.0.0",
"serial": "1234",
"manufacturerURL": config_flow.HUE_MANUFACTURERURL,
}
)
assert result["type"] == "abort"
assert result["reason"] == "not_hue_bridge"
async def test_bridge_ssdp_already_configured(hass):