-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Rationalise temperature localisation #48
Comments
See also issue #12 that introduces some facts around units used for temperature. |
See the comments in #38 and #46. I may be misunderstanding things, but the temperature conversion may not be necessary. #46 fixed the problem where a double conversion from C to F was happening. Min/Max are now being correctly localized. There still are a number of temperature attributes that aren't being localized correctly. If Min/Max are being localized correctly without the integration doing the conversion, than it might be that the other temperature attributes need to have their type/class/unit set correctly so that Home Assistant will handle the localization. |
Renamed issue from Worked previouslyTemperature values that were already correctly localised into Fahrenheit:
Working nowFollowing recent removal of duplicate conversion, temperatures now correctly localised into Fahrenheit (temperature names followed by sample values):
Needing attention to make them work:Temperature related attributes not yet being correctly localised (sample values appear to be Celsius even though system localised to Fahrenheit): floor_temperature: 18 SuggestionPerhaps the types/units must be correctly identified for these. e.g. make sure Home Assistant knows they are device class == temperature and unit of measurement is 'C' |
Whilst testing any changes to this, also test whether the warmup.set_override values need adjusting at all (see issue #39) |
This is a new feature request. Previously there was some temperature conversion, but only on min / max temperatures, and not through the rest of this custom component. The little there was had to be removed (PR #46 and issue #42) as it used the deprecated temperature utility, which was about to be killed off.
We should use the current strategy tool TemperatureConverter (home assistant unit_conversion.py in util folder) to implement any temperature conversion required.
The text was updated successfully, but these errors were encountered: