AlexxIT / XiaomiGateway3

Home Assistant custom component for control Xiaomi Multimode Gateway (aka Gateway 3), Xiaomi Multimode Gateway 2, Aqara Hub E1 on default firmwares over LAN
https://github.com/AlexxIT/Blog
MIT License
2.47k stars 348 forks source link

Fix power_replenishment and realtime_current_in for WD1 #1316

Closed caibinqing closed 7 months ago

caibinqing commented 7 months ago

homeassistant.exceptions.HomeAssistantError: Entity sensor.649e3170ff79_power_replenishment cannot be added as the entity category is set to config

AlexxIT commented 7 months ago

Have you tested this? I'm not sure if class can be set as string and not as enum.

caibinqing commented 7 months ago

Yes, only tested on 2024.4.0b7, didn’t see any errors and works fine.

I agree with changing it to enum. I wrote it as a string just because this file does not import any HA constants.

AlexxIT commented 7 months ago

OK, Thanks!

AlexxIT commented 7 months ago

https://github.com/AlexxIT/XiaomiGateway3/releases/tag/v4.0.2