Skip to content

Commit 1b85b0a

Browse files
Add extra debug logging (#3563)
1 parent 182efb7 commit 1b85b0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

custom_components/battery_notes/sensor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,11 @@ async def async_state_changed_listener(
355355
]
356356
or not validate_is_float(wrapped_battery_state.state)
357357
):
358+
_LOGGER.debug("Sensor.py -> wrapped_battery_state: %s", wrapped_battery_state)
359+
if wrapped_battery_state:
360+
_LOGGER.debug("Sensor.py -> wrapped_battery_state.state: <%s>", wrapped_battery_state.state)
361+
_LOGGER.debug("Sensor.py -> validate_is_float: <%s>", validate_is_float(wrapped_battery_state.state))
362+
358363
self._attr_native_value = None
359364
self._attr_available = False
360365
self.async_write_ha_state()

0 commit comments

Comments
 (0)