Add icon translations to apcupsd (#111342)

* Add icon translations to apcupsd

* Add icon translations to apcupsd
This commit is contained in:
Joost Lekkerkerker
2024-02-25 10:42:04 +01:00
committed by GitHub
parent cb6cf3bedc
commit 859c28fdb7
3 changed files with 205 additions and 53 deletions

View File

@@ -19,7 +19,7 @@ _LOGGER = logging.getLogger(__name__)
_DESCRIPTION = BinarySensorEntityDescription(
key="statflag",
name="UPS Online Status",
icon="mdi:heart",
translation_key="online_status",
)
# The bit in STATFLAG that indicates the online status of the APC UPS.
_VALUE_ONLINE_MASK: Final = 0b1000