You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a Tapo D230 doorbell connected via an H200 hub. The integration is exposing all its attributes correctly except that the sensor.xxxx_battery battery level percentage is being given a device class of 'mdi:battery' and not 'battery' and so is not showing up in battery-filtered cards, automations etc. For now I've corrected it in my customization YAML file.
Reproduction Steps
Install the Tapo app on Android device.
Add the H200 hub.
Add the D230 doorbell.
Install Tapo: Cameras Control from HACS.
Add the hub to the integration - doorbell auto-detected and configured.
Check in Developer Tools->States -- device_class shows as 'mdi:battery'.
Expected behavior
The device class should be the string 'battery' not 'mdi:battery'.
If applicable, add error logs.
No response
Device Firmware
D230 1.1.14, H200 1.3.1
Integration Version
5.4.18
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
Vanilla HAOS image on x86_64 PC.
Search for similar issues
Yes
Additional information
Core 2024.5.3, supervisor 2024.05.1, OS 12.3, frontent 20240501.1.
The text was updated successfully, but these errors were encountered:
Spamfast
changed the title
Incorrect device_class for D230 doorbell.
Incorrect device_class for D230 doorbell battery sensor.
Jun 12, 2024
Problem is a one-liner in the TapoBatterySensor class constructor where it's setting the device_class argument instead of the icon argument in the base class constructor call.
Description
I have a Tapo D230 doorbell connected via an H200 hub. The integration is exposing all its attributes correctly except that the sensor.xxxx_battery battery level percentage is being given a device class of 'mdi:battery' and not 'battery' and so is not showing up in battery-filtered cards, automations etc. For now I've corrected it in my customization YAML file.
Reproduction Steps
Expected behavior
The device class should be the string 'battery' not 'mdi:battery'.
If applicable, add error logs.
No response
Device Firmware
D230 1.1.14, H200 1.3.1
Integration Version
5.4.18
Using stream component
Yes
Does camera work via official integrations?
Yes
Camera has all attributes filled out in developer tools
Yes
HASS Environment
Vanilla HAOS image on x86_64 PC.
Search for similar issues
Yes
Additional information
Core 2024.5.3, supervisor 2024.05.1, OS 12.3, frontent 20240501.1.
The text was updated successfully, but these errors were encountered: