mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 22:06:29 +00:00
Apply suggestion
Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
This commit is contained in:
parent
5bd3e55cee
commit
8b09080537
@ -7,7 +7,7 @@ title: "Deprecate Unit System constants and properties"
|
|||||||
As of Home Assistant Core 2022.11, the `is_metric` and `name` properties of a unit system are deprecated
|
As of Home Assistant Core 2022.11, the `is_metric` and `name` properties of a unit system are deprecated
|
||||||
and should not be used.
|
and should not be used.
|
||||||
|
|
||||||
Custom components referencing these properties will need to be adjusted to use instance checks instead.
|
Custom integrations referencing these properties will need to be adjusted to use instance checks instead.
|
||||||
|
|
||||||
Correct:
|
Correct:
|
||||||
```python
|
```python
|
||||||
|
Loading…
x
Reference in New Issue
Block a user