diff --git a/nspanel-lovelace-ui/config.yaml b/nspanel-lovelace-ui/config.yaml index 5235d5bd..bab405fc 100644 --- a/nspanel-lovelace-ui/config.yaml +++ b/nspanel-lovelace-ui/config.yaml @@ -1,6 +1,6 @@ # https://developers.home-assistant.io/docs/add-ons/configuration#add-on-config name: NSPanel Lovelace UI Addon -version: "4.7.72" +version: "4.7.73" slug: nspanel-lovelace-ui description: NSPanel Lovelace UI Addon services: diff --git a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/ha_cards.py b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/ha_cards.py index c145eae0..f7b1c324 100644 --- a/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/ha_cards.py +++ b/nspanel-lovelace-ui/rootfs/usr/bin/mqtt-manager/ha_cards.py @@ -188,7 +188,7 @@ class HAEntity(panel_cards.Entity): icon_char = value case 'binary_sensor': device_class = self.attributes.get("device_class", "") - value = get_translation(self.locale, f"backend.component.binary_sensor.state.{device_class}.{entity.state}") + value = get_translation(self.locale, f"backend.component.binary_sensor.state.{device_class}.{self.state}") case 'weather': attr = self.config.get("attribute", "temperature") value = str(self.attributes.get(attr, self.state))