mirror of
https://github.com/home-assistant/core.git
synced 2025-12-25 05:26:47 +00:00
Adax, unique id and title should be string (#63132)
This commit is contained in:
committed by
GitHub
parent
b379acc119
commit
8e5c8c516d
@@ -52,7 +52,7 @@ async def test_form(hass: HomeAssistant) -> None:
|
||||
await hass.async_block_till_done()
|
||||
|
||||
assert result3["type"] == "create_entry"
|
||||
assert result3["title"] == TEST_DATA["account_id"]
|
||||
assert result3["title"] == str(TEST_DATA["account_id"])
|
||||
assert result3["data"] == {
|
||||
ACCOUNT_ID: TEST_DATA["account_id"],
|
||||
CONF_PASSWORD: TEST_DATA["password"],
|
||||
@@ -93,7 +93,7 @@ async def test_flow_entry_already_exists(hass: HomeAssistant) -> None:
|
||||
first_entry = MockConfigEntry(
|
||||
domain="adax",
|
||||
data=TEST_DATA,
|
||||
unique_id=TEST_DATA[ACCOUNT_ID],
|
||||
unique_id=str(TEST_DATA[ACCOUNT_ID]),
|
||||
)
|
||||
first_entry.add_to_hass(hass)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user