mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-21 08:16:29 +00:00
Fix code block in ha-state-icon properties changes blog post (#2065)
This commit is contained in:
parent
6a72fce9d1
commit
b5bad736a6
@ -13,13 +13,13 @@ If you are a custom card developer using this component, you must adjust the pro
|
||||
### Before 2024.2
|
||||
|
||||
```html
|
||||
<ha-state-icon .state="${stateObj}"></ha-state-icon>
|
||||
<ha-state-icon .state=${stateObj}></ha-state-icon>
|
||||
```
|
||||
|
||||
### After 2024.2
|
||||
|
||||
```html
|
||||
<ha-state-icon .hass="${hass}" .stateObj="${stateObj}"></ha-state-icon>
|
||||
<ha-state-icon .hass=${hass} .stateObj=${stateObj}></ha-state-icon>
|
||||
```
|
||||
|
||||
### Backward compatibility
|
||||
@ -28,8 +28,8 @@ If you want to support both old and new version on Home Assistant, you can pass
|
||||
|
||||
```html
|
||||
<ha-state-icon
|
||||
.hass="${hass}"
|
||||
.stateObj="${stateObj}"
|
||||
.state="${stateObj}"
|
||||
.hass=${hass}
|
||||
.stateObj=${stateObj}
|
||||
.state=${stateObj}
|
||||
></ha-state-icon>
|
||||
```
|
||||
|
Loading…
x
Reference in New Issue
Block a user