Skip to content

Commit 04bd824

Browse files
Modify unavailable/unknown template events
1 parent 111ae57 commit 04bd824

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

custom_components/battery_notes/coordinator.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -190,13 +190,8 @@ def battery_low_template_state(self, value):
190190

191191
_LOGGER.debug("battery_increased event fired via template")
192192

193-
if value not in [
194-
STATE_UNAVAILABLE,
195-
STATE_UNKNOWN,
196-
]:
197-
self._previous_battery_low_template_state = value
198-
else:
199-
self._previous_battery_low_template_state = None
193+
194+
self._previous_battery_low_template_state = value
200195

201196
@property
202197
def battery_low_binary_state(self):

0 commit comments

Comments
 (0)