Fix Daikin zeroconf discovery flow error (#36868)

This commit is contained in:
Fredrik Erlandsson authored and Paulus Schoutsen committed 2020-06-17 12:22:35 -07:00
1 parent ec69edcb79
commit 625c2aa19d
2 files changed
+4 -4

No files matched your search

+3 -3
View File
@@ -45,9 +45,9 @@ def mock_daikin():
def mock_daikin_discovery():
"""Mock pydaikin Discovery."""
with patch("homeassistant.components.daikin.config_flow.Discovery") as Discovery:
Discovery.poll = PropertyMock(
return_value={"127.0.01": {"mac": "AABBCCDDEEFF", "id": "test"}}
)
Discovery().poll.return_value = {
"127.0.01": {"mac": "AABBCCDDEEFF", "id": "test"}
}
yield Discovery