From 718512b89d97a51b5922521177ea77a292de9850 Mon Sep 17 00:00:00 2001 From: magnuselden Date: Wed, 25 Oct 2023 17:08:02 +0200 Subject: [PATCH] misc logging --- .../peaqhvac/service/models/offset_model.py | 2 +- .../service/observer/iobserver_coordinator.py | 14 +++++++------- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/custom_components/peaqhvac/service/models/offset_model.py b/custom_components/peaqhvac/service/models/offset_model.py index 4c0a7d4a..bf406112 100644 --- a/custom_components/peaqhvac/service/models/offset_model.py +++ b/custom_components/peaqhvac/service/models/offset_model.py @@ -48,7 +48,7 @@ def tolerance(self) -> int: def tolerance(self, val): self._tolerance = val - def recalculate_tolerance(self): + def recalculate_tolerance(self, *args): if self.hub.options.hvac_tolerance is not None: old_tolerance = self._tolerance old_raw = self.tolerance_raw diff --git a/custom_components/peaqhvac/service/observer/iobserver_coordinator.py b/custom_components/peaqhvac/service/observer/iobserver_coordinator.py index 3c770910..345e05fe 100644 --- a/custom_components/peaqhvac/service/observer/iobserver_coordinator.py +++ b/custom_components/peaqhvac/service/observer/iobserver_coordinator.py @@ -74,17 +74,17 @@ async def async_dispatch(self, *args): async def async_dequeue_and_broadcast(self, command: Command): if await self.async_ok_to_broadcast(command.command): async with self._lock: - _LOGGER.debug( - f"ready to broadcast: {command.command.name} with params: {command.argument}" - ) + # _LOGGER.debug( + # f"ready to broadcast: {command.command.name} with params: {command.argument}" + # ) for func in self.model.subscribers.get(command.command, []): await self.async_broadcast_separator(func, command) if command in self.model.broadcast_queue: self.model.broadcast_queue.remove(command) - else: - _LOGGER.debug( - f"not able to broadcast: {command.command.name} with params: {command.argument}" - ) + # else: + # _LOGGER.debug( + # f"not able to broadcast: {command.command.name} with params: {command.argument}" + # ) @abstractmethod async def async_broadcast_separator(self, func, command):