mirror of
https://github.com/home-assistant/core.git
synced 2025-08-02 04:05:06 +02:00
Fix mutable objects in group registry class (#115797)
This commit is contained in:
@@ -47,10 +47,12 @@ def _process_group_platform(
|
|||||||
class GroupIntegrationRegistry:
|
class GroupIntegrationRegistry:
|
||||||
"""Class to hold a registry of integrations."""
|
"""Class to hold a registry of integrations."""
|
||||||
|
|
||||||
on_off_mapping: dict[str, str] = {STATE_ON: STATE_OFF}
|
def __init__(self) -> None:
|
||||||
off_on_mapping: dict[str, str] = {STATE_OFF: STATE_ON}
|
"""Imitialize registry."""
|
||||||
on_states_by_domain: dict[str, set] = {}
|
self.on_off_mapping: dict[str, str] = {STATE_ON: STATE_OFF}
|
||||||
exclude_domains: set = set()
|
self.off_on_mapping: dict[str, str] = {STATE_OFF: STATE_ON}
|
||||||
|
self.on_states_by_domain: dict[str, set[str]] = {}
|
||||||
|
self.exclude_domains: set[str] = set()
|
||||||
|
|
||||||
def exclude_domain(self) -> None:
|
def exclude_domain(self) -> None:
|
||||||
"""Exclude the current domain."""
|
"""Exclude the current domain."""
|
||||||
|
Reference in New Issue
Block a user