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:
1 parent
480066ba63
commit
7554c8d6c5
15 files changed
+84
-27
No files matched your search
@@ -15,6 +15,7 @@ from homeassistant.const import (
|
||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||
DEVICE_CLASS_TEMPERATURE,
|
||||
PERCENTAGE,
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
TEMP_CELSIUS,
|
||||
)
|
||||
from homeassistant.setup import async_setup_component
|
||||
@@ -187,7 +188,7 @@ async def test_sensors_flex(hass, canary) -> None:
|
||||
"home_dining_room_wifi": (
|
||||
"20_wifi",
|
||||
"-57.0",
|
||||
"dBm",
|
||||
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
DEVICE_CLASS_SIGNAL_STRENGTH,
|
||||
None,
|
||||
),
|
||||
|
||||
Reference in new issue
Block a user