Hi,
If I configure localized monitored_resources like distance, weight,…
I get the following error:
homeassistant.components.sensor: Error while setting up platform fitbit
Traceback (most recent call last):
File “/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/entity_component.py”, line 98, in _setup_platform
discovery_info)
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/fitbit.py”, line 239, in setup_platform
dev.append(FitbitSensor(authd_client, config_path, resource))
File “/usr/local/lib/python3.4/dist-packages/homeassistant/components/sensor/fitbit.py”, line 331, in init
measurement_system = FITBIT_MEASUREMENTS[self.client.system]
KeyError: ‘es_ES’
My fitbit is localized as es_ES
My configuration:
- platform: fitbit
monitored_resources:- “activities/steps”
- “activities/distance”
- “body/weight”
- “sleep/efficiency”
If I include only to monitor not localized data like steps or sleep/Efficiency it works.
- platform: fitbit
monitored_resources:- “activities/steps”
- “sleep/efficiency”