Skip to content
Snippets Groups Projects
Commit 5b2356de authored by jkerdreu's avatar jkerdreu
Browse files

Fix unit for battery



git-svn-id: https://redmine.imt-atlantique.fr/svn/xaal/code/Python/branches/0.7@3060 b32b6428-25c9-4566-ad07-03861ab6144f
parent c50e315d
Branches
No related tags found
No related merge requests found
......@@ -65,7 +65,7 @@ class Barometer(XAALSensorEntity):
class Battery(XAALSensorEntity):
_attr_state_class = None
_attr_device_class = SensorDeviceClass.BATTERY
_attr_unit_of_measurement = const.PERCENTAGE
_attr_native_unit_of_measurement = const.PERCENTAGE
_xaal_attribute = 'level'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment