@@ -140,11 +140,6 @@ async def async_pause(self) -> None:
140
140
def _update_from_device (self ) -> None :
141
141
"""Update from device."""
142
142
self ._calculate_features ()
143
- # optional battery level
144
- if VacuumEntityFeature .BATTERY & self ._attr_supported_features :
145
- self ._attr_battery_level = self .get_matter_attribute_value (
146
- clusters .PowerSource .Attributes .BatPercentRemaining
147
- )
148
143
# derive state from the run mode + operational state
149
144
run_mode_raw : int = self .get_matter_attribute_value (
150
145
clusters .RvcRunMode .Attributes .CurrentMode
@@ -188,11 +183,6 @@ def _calculate_features(self) -> None:
188
183
supported_features |= VacuumEntityFeature .STATE
189
184
supported_features |= VacuumEntityFeature .STOP
190
185
191
- # optional battery attribute = battery feature
192
- if self .get_matter_attribute_value (
193
- clusters .PowerSource .Attributes .BatPercentRemaining
194
- ):
195
- supported_features |= VacuumEntityFeature .BATTERY
196
186
# optional identify cluster = locate feature (value must be not None or 0)
197
187
if self .get_matter_attribute_value (clusters .Identify .Attributes .IdentifyType ):
198
188
supported_features |= VacuumEntityFeature .LOCATE
@@ -230,7 +220,6 @@ def _calculate_features(self) -> None:
230
220
clusters .RvcRunMode .Attributes .CurrentMode ,
231
221
clusters .RvcOperationalState .Attributes .OperationalState ,
232
222
),
233
- optional_attributes = (clusters .PowerSource .Attributes .BatPercentRemaining ,),
234
223
device_type = (device_types .RoboticVacuumCleaner ,),
235
224
allow_none_value = True ,
236
225
),
0 commit comments