diff --git a/paradox/hardware/evo/panel.py b/paradox/hardware/evo/panel.py index 35df2487..b523540c 100644 --- a/paradox/hardware/evo/panel.py +++ b/paradox/hardware/evo/panel.py @@ -37,19 +37,6 @@ def __init__( self._populate_settings(start_communication_response) - enabled_partitions = list( - (key for key, val in self.settings.system_options.partitions.items() if val) - ) - - if hasattr(cfg, "LIMITS"): - partition_limits = cfg.LIMITS.get("partition") - if partition_limits is None: - cfg.LIMITS["partition"] = enabled_partitions - else: - cfg.LIMITS["partition"] = list( - set(cfg.LIMITS["partition"]).intersection(enabled_partitions) - ) - def _populate_settings(self, start_communication_response): raw_data = ( start_communication_response.fields.data diff --git a/paradox/hardware/evo/parsers.py b/paradox/hardware/evo/parsers.py index 6621a015..b929636c 100644 --- a/paradox/hardware/evo/parsers.py +++ b/paradox/hardware/evo/parsers.py @@ -391,23 +391,23 @@ def get_user_definition(settings): ) ), ), - # "partition": BitsSwapped( # No need as we get this data during connect in InitializeCommunication system_options - # Bitwise( - # DictArray( - # 8, - # 1, - # Struct( - # "_index" / Computed(this._index + 1), - # "definition" - # / ExprAdapter( - # Default(Flag, False), - # lambda obj, context: "enabled" if obj else "disabled", - # lambda obj, context: obj == "enabled", - # ), - # ), - # ) - # ) - # ), + "partition": BitsSwapped( # No need as we get this data during connect in InitializeCommunication system_options + Bitwise( + DictArray( + 8, + 1, + Struct( + "_index" / Computed(this._index + 1), + "definition" + / ExprAdapter( + Default(Flag, False), + lambda obj, context: "enabled" if obj else "disabled", + lambda obj, context: obj == "enabled", + ), + ), + ) + ) + ), "user": get_user_definition, }