Closed advokatb closed 5 years ago
I am having the same error.
2019-04-17 07:52:44 ERROR (MainThread) [homeassistant.components.sensor] google_fit: Error on device update! Traceback (most recent call last): File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity_platform.py", line 261, in _async_add_entity await entity.async_device_update(warning=False) File "/usr/local/lib/python3.7/site-packages/homeassistant/helpers/entity.py", line 379, in async_device_update await self.hass.async_add_executor_job(self.update) File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, **self.kwargs) File "/usr/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper result = method(*args, **kwargs) File "/usr/local/lib/python3.7/site-packages/homeassistant/util/__init__.py", line 224, in wrapper result = method(*args, **kwargs) File "/config/custom_components/google_fit/sensor.py", line 630, in update bed_time = datetime.fromtimestamp(round(min(starts) / 1000)) ValueError: min() arg is an empty sequence
I have the same error. I think it is when we don't record sleep the component throws an error. Any fix?
Regret the delay in reply. I have now updated the custom component with the fix.
I see Object unawailable: sensor.google_fit_sleep in HA frontend and
in my logs