另外想请教下configuration.yaml文件中我想在sensor中年增加device_class: energy属性 不知道放在哪,代码如何写。
configuration.yaml文件代码如下:
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes