Good afternoon,
I’m seeing errors in my logs for Honeywell Lyric My custom configuration. I’ve posted the errors on the developer’s github site, but I’m not sure how active the developer is.
Logger: homeassistant.components.sensor
Source: components/sensor/init.py:729
integration: Sensor (documentation, issues)
First occurred: 7:23:12 AM (10 occurrences)
Last logged: 10:22:46 AM
Entity sensor.basement_water_leak_detector_basement_battery (<class 'custom_components.lyric_my.sensor.LyricLeakSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('battery') it is using; expected one of ['%']; Please update your configuration if your entity is manually configured, otherwise report it to the author of the 'lyric_my' custom integration
Entity sensor.basement_water_leak_detector_basement_wifi (<class 'custom_components.lyric_my.sensor.LyricLeakSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the author of the 'lyric_my' custom integration
Entity sensor.laundry_room_water_leak_detector_laundry_room_battery_2 (<class 'custom_components.lyric_my.sensor.LyricLeakSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('battery') it is using; expected one of ['%']; Please update your configuration if your entity is manually configured, otherwise report it to the author of the 'lyric_my' custom integration
Entity sensor.laundry_room_water_leak_detector_laundry_room_wifi_2 (<class 'custom_components.lyric_my.sensor.LyricLeakSensor'>) is using native unit of measurement 'None' which is not a valid unit for the device class ('signal_strength') it is using; expected one of ['dB', 'dBm']; Please update your configuration if your entity is manually configured, otherwise report it to the author of the 'lyric_my' custom integration
I know I should be able to edit the code in the custom configuration folder for the sensor.py file, but I’m not sure what I need to change based upon the errors I’m seeing (not a developer, but I do IT work for a living).
I found these entries in the sensor.py config file for the integration:
LyricSensorEntityDescription(
key="Battery",
translation_key="battery",
device_class=SensorDeviceClass.BATTERY,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda device: device.attributes.get("batteryRemaining"),
suitable_fn=lambda device: device.attributes.get("batteryRemaining"),
),
LyricSensorEntityDescription(
key="WiFi",
translation_key="wifi",
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
state_class=SensorStateClass.MEASUREMENT,
value_fn=lambda device: abs(device.attributes.get("wifiSignalStrength")),
suitable_fn=lambda device: abs(device.attributes.get("wifiSignalStrength")),
),
Can anybody advise how to fix the errors?