Add unique ID to coronavirus (#32423)

This commit is contained in:
Paulus Schoutsen committed 2020-03-02 18:10:51 -08:00
1 parent d6c15d2f45
commit bfaad97318
5 files changed
+12 -1

No files matched your search

@@ -22,9 +22,9 @@ async def test_form(hass):
result2 = await hass.config_entries.flow.async_configure(
result["flow_id"], {"country": OPTION_WORLDWIDE},
)
assert result2["type"] == "create_entry"
assert result2["title"] == "Worldwide"
assert result2["result"].unique_id == OPTION_WORLDWIDE
assert result2["data"] == {
"country": OPTION_WORLDWIDE,
}
@@ -53,3 +53,6 @@ async def test_migration(hass):
assert hass.states.get("sensor.netherlands_confirmed").state == "10"
assert hass.states.get("sensor.worldwide_confirmed").state == "11"
assert nl_entry.unique_id == "Netherlands"
assert worldwide_entry.unique_id == OPTION_WORLDWIDE