Closed marianbezeg closed 1 year ago
I have just configured it with the same blueprint and dates, and this is what I get:
I've checked my sensor and its almost same.
There is nothing in calendar in next year. I see that you have number 2 there as well. Shouldn't this be something like no schedule, N/A etc. ?
I will see if I can change that without breaking things.
Looks like there is another issue with same thing. After the last scheduled date state is always today...
Me again, i edited code to fix this issue. I dont know if this is correct approach but at least its working for me :)
Thanks for the find. I did not really expect this condition, but you are right that with the blank and no dates added it could happen. So I added the code to set the state and next date to None. Check the latest release if it helps. If yes, please close the ticket.
@bruxy70 well, it looks like that now its working correctly.
Maybe last thing is to keep icon to "self._attr_icon = self._icon_normal" if there is no schedule as now there is no icon for the sensor. I assume that one from configured helper should be visible, but maybe its only how I see this thing 😄
This issue has been automatically marked as stale because it has not had any activity in last 30 days. It will be closed in 5 days if no further activity occurs. Thank you for your contributions.
Before you submit a new bug report, please check that
Describe the bug
Sensor is showing that next schedule will be in 54 days. But there is no future schedule ("Next date") for this sensor.
Configuration
Debug logs