Closed ccristal closed 7 months ago
That is strange. I'll have a look at it. Thank you for reporting it.
That's really really strange. When I activate the logging and look at the state for metric_values
, it is actually propagated correctly until the sensor entities are created. But Home Assistant just seems to completely ignore the conditions somehow 😿 .
Hi @ccristal. This seems to be a issue of the category "It's not a bug, it's a Feature!" 😆
I have looked at our code and could not find any errors. The switch does exactly what it is supposed to do. Depending on the selection, the mytoyota
python lib returns either metric or no metric values.
The "problem" lies with Home Assistant itself. Depending on the settings for Home Assistant, the units are converted automatically! However, this can also be overwritten later in the settings of the respective sensors:
I think I have also found a setting option that allows us to specify the units with which a sensor should initially be displayed. This should be included in the next release 😊 In the meantime, you can simply set your sensors to the desired display format yourself 😉
Thank you for looking into this... :-)
Describe the bug Even though I switch off the "Use metric units" toggle during the first configuration, sensor values are still expressed in metric units.
To Reproduce Steps to reproduce the behavior:
Expected behavior The sensor values should be expressed in miles.
Screenshots
Additional context Add any other context about the problem here.