Skip to content

Commit

Permalink
Remove power update interval settings
Browse files Browse the repository at this point in the history
  • Loading branch information
yozik04 committed Apr 22, 2024
1 parent 1dbfbcb commit 8beac19
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 12 deletions.
2 changes: 0 additions & 2 deletions config/pai.conf.example
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 0 additions & 6 deletions paradox/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions paradox/paradox.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 8beac19

Please sign in to comment.