mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-23 09:16:32 +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
|
### Before 2024.2
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<ha-state-icon .state="${stateObj}"></ha-state-icon>
|
<ha-state-icon .state=${stateObj}></ha-state-icon>
|
||||||
```
|
```
|
||||||
|
|
||||||
### After 2024.2
|
### After 2024.2
|
||||||
|
|
||||||
```html
|
```html
|
||||||
<ha-state-icon .hass="${hass}" .stateObj="${stateObj}"></ha-state-icon>
|
<ha-state-icon .hass=${hass} .stateObj=${stateObj}></ha-state-icon>
|
||||||
```
|
```
|
||||||
|
|
||||||
### Backward compatibility
|
### Backward compatibility
|
||||||
@ -28,8 +28,8 @@ If you want to support both old and new version on Home Assistant, you can pass
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<ha-state-icon
|
<ha-state-icon
|
||||||
.hass="${hass}"
|
.hass=${hass}
|
||||||
.stateObj="${stateObj}"
|
.stateObj=${stateObj}
|
||||||
.state="${stateObj}"
|
.state=${stateObj}
|
||||||
></ha-state-icon>
|
></ha-state-icon>
|
||||||
```
|
```
|
||||||
|
Loading…
x
Reference in New Issue
Block a user