From e12dcfc1b4ae550989ffe46fb9e724556705254f Mon Sep 17 00:00:00 2001 From: mkmer Date: Sun, 14 Jan 2024 04:59:04 -0500 Subject: [PATCH] Fix wifi sensor units in Blink (#107539) --- homeassistant/components/blink/sensor.py | 11 +++-------- homeassistant/components/blink/strings.json | 4 ++-- 2 files changed, 5 insertions(+), 10 deletions(-) diff --git a/homeassistant/components/blink/sensor.py b/homeassistant/components/blink/sensor.py index 74db76c421e900..ea31d1b29ab725 100644 --- a/homeassistant/components/blink/sensor.py +++ b/homeassistant/components/blink/sensor.py @@ -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 @@ -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, ), diff --git a/homeassistant/components/blink/strings.json b/homeassistant/components/blink/strings.json index a875fb3e343fe7..09bbba4c22612d 100644 --- a/homeassistant/components/blink/strings.json +++ b/homeassistant/components/blink/strings.json @@ -39,8 +39,8 @@ }, "entity": { "sensor": { - "wifi_rssi": { - "name": "Wi-Fi RSSI" + "wifi_strength": { + "name": "Wi-Fi signal strength" } }, "binary_sensor": {