cyberjunky / home-assistant-google_fit

:hearts: This component tracks your Google Fit activities.
MIT License
99 stars 20 forks source link

Error: Error adding entities for domain sensor with platform google_fit / Error while setting up google_fit platform for sensor #11

Closed Stele77 closed 2 years ago

Stele77 commented 3 years ago

Hi! I tried to setup this integration, but it produces an error on startup and does not create the entities with my Google Fit data:

`Logger: homeassistant.components.sensor Source: custom_components/google_fit/sensor.py:247 Integration: Sensor (documentation, issues) First occurred: 13:35:23 (2 occurrences) Last logged: 13:35:23

Error adding entities for domain sensor with platform google_fit Error while setting up google_fit platform for sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 383, in async_add_entities await asyncio.gather(*tasks) File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 588, in _async_add_entity await entity.add_to_platform_finish() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 666, in add_to_platform_finish self.async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 419, in async_write_ha_state self._async_write_ha_state() File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 460, in _async_write_ha_state extra_state_attributes = self.device_state_attributes File "/config/custom_components/google_fit/sensor.py", line 247, in device_state_attributes return self._attributes AttributeError: 'GoogleFitWeightSensor' object has no attribute '_attributes'`

Thanks for any help in advance!

cyberjunky commented 3 years ago

Will have a look

Bubi504 commented 3 years ago

The same here.

cyberjunky commented 2 years ago

Stale issue, please update to latest version and (re)open ticket if needed.

ndanzi commented 1 year ago

Still got the same error, latest version of google_fit and home assistant

Fvdzandt commented 1 year ago

I have the same:

Error adding entities for domain sensor with platform google_fit Error while setting up google_fit platform for sensor

fabse-hack commented 1 year ago

yes, the same here!