Skip to content

Commit

Permalink
Fix wifi sensor units in Blink (#107539)
Browse files Browse the repository at this point in the history
  • Loading branch information
mkmer authored Jan 14, 2024
1 parent 51cdb4c commit e12dcfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
11 changes: 3 additions & 8 deletions homeassistant/components/blink/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,7 @@
SensorStateClass,
)
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
EntityCategory,
UnitOfTemperature,
)
from homeassistant.const import EntityCategory, UnitOfTemperature
from homeassistant.core import HomeAssistant, callback
from homeassistant.helpers.device_registry import DeviceInfo
from homeassistant.helpers.entity_platform import AddEntitiesCallback
Expand All @@ -35,9 +31,8 @@
),
SensorEntityDescription(
key=TYPE_WIFI_STRENGTH,
translation_key="wifi_rssi",
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
translation_key="wifi_strength",
icon="mdi:wifi",
entity_category=EntityCategory.DIAGNOSTIC,
state_class=SensorStateClass.MEASUREMENT,
),
Expand Down
4 changes: 2 additions & 2 deletions homeassistant/components/blink/strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
},
"entity": {
"sensor": {
"wifi_rssi": {
"name": "Wi-Fi RSSI"
"wifi_strength": {
"name": "Wi-Fi signal strength"
}
},
"binary_sensor": {
Expand Down

0 comments on commit e12dcfc

Please sign in to comment.