mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Add unit of measurement to Netatmo sensors (#42208)
* Add unit of measurement * Update homeassistant/components/netatmo/sensor.py Co-authored-by: Chris Talkington <chris@talkingtontech.com> * Update sensor.py * Update sensor.py Co-authored-by: Chris Talkington <chris@talkingtontech.com>
This commit is contained in:
parent
e06c8009e1
commit
d13402108b
@ -15,6 +15,7 @@ from homeassistant.const import (
|
||||
LENGTH_MILLIMETERS,
|
||||
PERCENTAGE,
|
||||
PRESSURE_MBAR,
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
SPEED_KILOMETERS_PER_HOUR,
|
||||
TEMP_CELSIUS,
|
||||
)
|
||||
@ -91,9 +92,21 @@ SENSOR_TYPES = {
|
||||
],
|
||||
"reachable": ["Reachability", None, "mdi:signal", None, False],
|
||||
"rf_status": ["Radio", None, "mdi:signal", None, False],
|
||||
"rf_status_lvl": ["Radio Level", "", None, DEVICE_CLASS_SIGNAL_STRENGTH, False],
|
||||
"rf_status_lvl": [
|
||||
"Radio Level",
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
None,
|
||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||
False,
|
||||
],
|
||||
"wifi_status": ["Wifi", None, "mdi:wifi", None, False],
|
||||
"wifi_status_lvl": ["Wifi Level", "dBm", None, DEVICE_CLASS_SIGNAL_STRENGTH, False],
|
||||
"wifi_status_lvl": [
|
||||
"Wifi Level",
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
None,
|
||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||
False,
|
||||
],
|
||||
"health_idx": ["Health", None, "mdi:cloud", None, True],
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user