The unit of measurement % is not valid together with device class signal_strength (#233)
* Add French translation Add French translation * Update rpi-cpu2mqtt.py
This commit is contained in:
@@ -518,7 +518,7 @@ def handle_specific_configurations(data, what_config, device):
|
|||||||
elif what_config == "uptime_seconds":
|
elif what_config == "uptime_seconds":
|
||||||
add_common_attributes(data, "mdi:timer-outline", get_translation("uptime"), "s", "duration", "total_increasing")
|
add_common_attributes(data, "mdi:timer-outline", get_translation("uptime"), "s", "duration", "total_increasing")
|
||||||
elif what_config == "wifi_signal":
|
elif what_config == "wifi_signal":
|
||||||
add_common_attributes(data, "mdi:wifi", get_translation("wifi_signal"), "%", "signal_strength", "measurement")
|
add_common_attributes(data, "mdi:wifi", get_translation("wifi_signal"), "%", None, "measurement")
|
||||||
elif what_config == "wifi_signal_dbm":
|
elif what_config == "wifi_signal_dbm":
|
||||||
add_common_attributes(data, "mdi:wifi", get_translation("wifi_signal_strength"), "dBm", "signal_strength", "measurement")
|
add_common_attributes(data, "mdi:wifi", get_translation("wifi_signal_strength"), "dBm", "signal_strength", "measurement")
|
||||||
elif what_config == "rpi5_fan_speed":
|
elif what_config == "rpi5_fan_speed":
|
||||||
|
|||||||
Reference in New Issue
Block a user