mirror of
https://github.com/elisspace/core.git
synced 2026-09-02 20:25:52 +00:00
Fix AssertionError in RainMachine (#75668)
This commit is contained in:
@@ -243,10 +243,8 @@ class TimeRemainingSensor(RainMachineEntity, RestoreSensor):
|
||||
seconds_remaining = self.calculate_seconds_remaining()
|
||||
new_timestamp = now + timedelta(seconds=seconds_remaining)
|
||||
|
||||
assert isinstance(self._attr_native_value, datetime)
|
||||
|
||||
if (
|
||||
self._attr_native_value
|
||||
isinstance(self._attr_native_value, datetime)
|
||||
and new_timestamp - self._attr_native_value
|
||||
< DEFAULT_ZONE_COMPLETION_TIME_WOBBLE_TOLERANCE
|
||||
):
|
||||
|
||||
Reference in New Issue
Block a user