Add missing unit for signal strength (#40436)
* Added missing unit for signal strength * Added one more unit * Replaced string with variable * Fixed wrong import * Fix import * Replaced string with variable * Fixed wrong import * Apply suggestions from code review * Black * Again a fix :-( * iSort * iSort after merge Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
This commit is contained in:
parent
480066ba63
commit
7554c8d6c5
15 changed files with 84 additions and 27 deletions
|
@ -1,7 +1,7 @@
|
|||
"""This component provides HA sensor support for Ring Door Bell/Chimes."""
|
||||
import logging
|
||||
|
||||
from homeassistant.const import PERCENTAGE
|
||||
from homeassistant.const import PERCENTAGE, SIGNAL_STRENGTH_DECIBELS_MILLIWATT
|
||||
from homeassistant.core import callback
|
||||
from homeassistant.helpers.entity import Entity
|
||||
from homeassistant.helpers.icon import icon_for_battery_level
|
||||
|
@ -256,7 +256,7 @@ SENSOR_TYPES = {
|
|||
"wifi_signal_strength": [
|
||||
"WiFi Signal Strength",
|
||||
["chimes", "doorbots", "authorized_doorbots", "stickup_cams"],
|
||||
"dBm",
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
"wifi",
|
||||
None,
|
||||
"signal_strength",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue