Skip to content

Commit

Permalink
add device class for wifi_signal (#176)
Browse files Browse the repository at this point in the history
  • Loading branch information
hjelev authored Dec 7, 2024
1 parent d69ec4f commit 3ff7f10
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpi-cpu2mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -476,6 +476,7 @@ def config_json(what_config, device="0", hass_api=False):
data["name"] = "Wifi Signal"
data["unit_of_measurement"] = "%"
data["state_class"] = "measurement"
data["device_class"] = "signal_strength"
elif what_config == "wifi_signal_dbm":
data["icon"] = "mdi:wifi"
data["name"] = "Wifi Signal"
Expand Down

0 comments on commit 3ff7f10

Please sign in to comment.