Skip to content

Commit

Permalink
add mixer debug
Browse files Browse the repository at this point in the history
  • Loading branch information
jontofront committed Jan 26, 2024
1 parent db8d7ee commit 705193a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions custom_components/econet300/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,9 @@ def create_controller_sensors(coordinator: EconetDataCoordinator, api: Econet300

def can_add_mixer(key: str, coordinator: EconetDataCoordinator):
"""Check if a mixer can be added."""
_LOGGER.debug(
"Checking if mixer can be added for key: %s, data %s", key, coordinator.data
)
return coordinator.has_data(key) and coordinator.data[key] is not None


Expand Down

0 comments on commit 705193a

Please sign in to comment.