Remove hardcoded battery icon for Battery State of Charge#306
Remove hardcoded battery icon for Battery State of Charge#306Q-Claw wants to merge 2 commits intoTypQxQ:mainfrom
Conversation
Allow Home Assistant to apply dynamic battery icon based on state of charge.
Greptile OverviewGreptile SummaryRemoved the hardcoded
Note: There are two other battery SOC sensors in the codebase ( Confidence Score: 4/5
Important Files Changed
|
Additional Comments (2)
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time!
Note: If this suggestion doesn't match your team's coding style, reply to this and let me know. I'll remember it for next time! |
Keep SOC sensors consistent and allow Home Assistant dynamic battery icons.
|
Implemented feedback: removed hardcoded battery icon from the other SOC sensors ( and ) as well, so Home Assistant can apply the default dynamic battery icon consistently. |
|
Implemented feedback: removed the hardcoded battery icon from the other SOC sensors (inverter_ess_battery_soc and dc_charger_vehicle_soc) as well, so Home Assistant can apply the default dynamic battery icon consistently. |
This removes the hardcoded icon from the plant_ess_soc sensor description.
Home Assistant already provides a default dynamic battery icon for sensors with device_class=battery and SOC in %, but setting icon=mdi:battery forces a static icon.
Fixes #305.