diff --git a/config/pai.conf.example b/config/pai.conf.example index f8a5f69..65836a5 100644 --- a/config/pai.conf.example +++ b/config/pai.conf.example @@ -62,8 +62,6 @@ import logging # # In Babyware: Right click on your panel -> Properties -> PC Communication (Babyware) -> # # PC Communication (Babyware) Tab. # -# POWER_UPDATE_INTERVAL = 60 # Interval between updates of the battery, DC and VDC voltages -# PUSH_POWER_UPDATE_WITHOUT_CHANGE = True # Always notify interfaces of power changes # PUSH_UPDATE_WITHOUT_CHANGE = False # Always notify interfaces of all changes # ### MQTT diff --git a/paradox/config.py b/paradox/config.py index 1428f4a..aac33cb 100644 --- a/paradox/config.py +++ b/paradox/config.py @@ -79,12 +79,6 @@ class Config: None, [int, str, bytes, type(None)], ), # PC Password. Set to None if Panel has no Password. In Babyware: Right click on your panel -> Properties -> PC Communication (Babyware) -> PC Communication (Babyware) Tab. - "POWER_UPDATE_INTERVAL": ( - 60, - int, - (0, 0xFFFFFFFF), - ), # Interval between updates of the Power voltages - "PUSH_POWER_UPDATE_WITHOUT_CHANGE": True, # Always notify interfaces of power changes "PUSH_UPDATE_WITHOUT_CHANGE": False, # Always notify interfaces of all changes # MQTT "MQTT_ENABLE": False, # Enable MQTT Interface diff --git a/paradox/paradox.py b/paradox/paradox.py index 488b098..cc84138 100644 --- a/paradox/paradox.py +++ b/paradox/paradox.py @@ -325,10 +325,6 @@ def _process_status(raw_status: Container) -> None: if limit_arr is not None: status[limit_key].filter(limit_arr) - # # TODO: throttle power update messages - # if time.time() - self.last_power_update >= cfg.POWER_UPDATE_INTERVAL: - # force = PublishPropertyChange.YES if cfg.PUSH_POWER_UPDATE_WITHOUT_CHANGE else PublishPropertyChange.NO - if cfg.LOGGING_DUMP_STATUS: logger.debug("properties: %s", status)