Skip to content

Commit

Permalink
Update mappings.py
Browse files Browse the repository at this point in the history
Edited module_count to replace SensorDeviceClass.Battery with None to correct the device showing "almost empty battery", as it reads this entity as Battery% information.
  • Loading branch information
johanschelin authored Sep 30, 2023
1 parent 7581130 commit 8ee6df2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions custom_components/sonnenbatterie/mappings.py
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@
"modules": {
"sensor": "module_count",
"friendly_name": "Battery module count",
"unit": "",
"class": SensorDeviceClass.BATTERY,
"unit": None,
"class": None,
},
},
"inverter": {
Expand Down

0 comments on commit 8ee6df2

Please sign in to comment.