Skip to content

Commit

Permalink
misc logging
Browse files Browse the repository at this point in the history
  • Loading branch information
magnuselden authored and magnuselden committed Oct 25, 2023
1 parent a8d4da0 commit 718512b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion custom_components/peaqhvac/service/models/offset_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down

0 comments on commit 718512b

Please sign in to comment.