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
@@ -227,7 +227,7 @@ class PlexOptionsFlowHandler(config_entries.OptionsFlow):
|
||||
|
||||
def __init__(self, config_entry):
|
||||
"""Initialize Plex options flow."""
|
||||
self.options = copy.deepcopy(config_entry.options)
|
||||
self.options = copy.deepcopy(dict(config_entry.options))
|
||||
self.server_id = config_entry.data[CONF_SERVER_IDENTIFIER]
|
||||
|
||||
async def async_step_init(self, user_input=None):
|
||||
|
||||
Reference in new issue
Block a user