File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
plugwise_usb/nodes/helpers Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1313_LOGGER = logging .getLogger (__name__ )
1414CONSUMED : Final = True
1515PRODUCED : Final = False
16+ PODUCERS : tuple [str ] = ("000D6F00029C32C7" )
1617
1718MAX_LOG_HOURS = WEEK_IN_HOURS
1819
@@ -88,11 +89,14 @@ def __init__(self, mac: str) -> None:
8889
8990 self ._logs : dict [int , dict [int , PulseLogRecord ]] | None = None
9091 self ._log_addresses_missing : list [int ] | None = None
91- self ._log_production = True # : bool | None = None
9292 self ._pulses_consumption : int | None = None
9393 self ._pulses_production : int | None = None
9494 self ._pulses_timestamp : datetime | None = None
9595
96+ self ._log_production = False # : bool | None = None
97+ if mac in PRODUCERS :
98+ self ._log_production = False
99+
96100 @property
97101 def collected_logs (self ) -> int :
98102 """Total collected logs."""
You can’t perform that action at this time.
0 commit comments