We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
As per home-assistant/core#80257
The name of a unit system should never be used for checking its type. Instance checks should be used instead:
Correct:
if hass.config.units is IMPERIAL_SYSTEM: pass if hass.config.units is METRIC_SYSTEM: pass
Incorrect:
if hass.config.units.name == CONF_UNIT_SYSTEM_IMPERIAL: pass if hass.config.units.name == CONF_UNIT_SYSTEM_METRIC: pass
The text was updated successfully, but these errors were encountered:
Note: the name property of the IMPERIAL_SYSTEM is likely to get adjusted as soon as 2022.11 so this is an advance warning
name
IMPERIAL_SYSTEM
2022.11
Sorry, something went wrong.
Fixed issue #21
96e837e
The name property of the Unit System is deprecated #21
Fixed thanks @epenet 👍
No branches or pull requests
As per home-assistant/core#80257
The name of a unit system should never be used for checking its type. Instance checks should be used instead:
Correct:
Incorrect:
The text was updated successfully, but these errors were encountered: