chineseholiday: Error on device update!
Traceback (most recent call last):
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity_platform.py", line 251, in _async_add_entity
await entity.async_device_update(warning=False)
File "/usr/local/lib/python3.6/site-packages/homeassistant/helpers/entity.py", line 352, in async_device_update
yield from self.hass.async_add_job(self.update)
File "/usr/local/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/local/lib/python3.6/site-packages/homeassistant/util/__init__.py", line 324, in wrapper
result = method(*args, **kwargs)
File "/config/custom_components/sensor/chineseholiday.py", line 210, in _update
self.attributes['离今天最近的法定节日'] = self.nearest_holiday()['name']
File "/config/custom_components/sensor/chineseholiday.py", line 122, in nearest_holiday
nearest_holiday_dict['name'] = HOLIDAY[min(count_dict)]
ValueError: min() arg is an empty sequence