Freeze config entry data (#32615)
* Freeze config entry data * Fix mutating entry.data * Fix config entry options tests
This commit is contained in:
1 parent
3318e65948
commit
d4615fd432
16 files changed
+71
-45
No files matched your search
@@ -73,11 +73,10 @@ async def test_flow_entry_already_exists(hass):
|
||||
Test when the form should show when user puts existing location
|
||||
in the config gui. Then the form should show with error.
|
||||
"""
|
||||
first_entry = MockConfigEntry(domain="met")
|
||||
first_entry.data["name"] = "home"
|
||||
first_entry.data[CONF_LONGITUDE] = 0
|
||||
first_entry.data[CONF_LATITUDE] = 0
|
||||
first_entry.data[CONF_ELEVATION] = 0
|
||||
first_entry = MockConfigEntry(
|
||||
domain="met",
|
||||
data={"name": "home", CONF_LATITUDE: 0, CONF_LONGITUDE: 0, CONF_ELEVATION: 0},
|
||||
)
|
||||
first_entry.add_to_hass(hass)
|
||||
|
||||
test_data = {
|
||||
|
||||
Reference in new issue
Block a user