Entity state 格式化
在 Home Assistant Core 2023.9 版本中,我们在 hass 对象中引入了 3 个新方法,以允许自定义卡片对 entity state 进行带本地化支持格式化:
hass.formatEntityStatehass.formatEntityAttributeValuehass.formatEntityAttributeName
示例:
更多详情,请参阅entity state 格式化文档。
在 Home Assistant Core 2023.9 版本中,我们在 hass 对象中引入了 3 个新方法,以允许自定义卡片对 entity state 进行带本地化支持格式化:
hass.formatEntityStatehass.formatEntityAttributeValuehass.formatEntityAttributeName示例:
更多详情,请参阅entity state 格式化文档。