Fix code block in ha-state-icon properties changes blog post (#2065)

This commit is contained in:
Paul Bottein 2024-01-31 20:41:22 +01:00 committed by GitHub
parent 6a72fce9d1
commit b5bad736a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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>
```