mirror of
https://github.com/home-assistant/core.git
synced 2025-09-10 07:11:37 +02:00
Remove switchbot vacuum battery attribute (#150227)
This commit is contained in:
@@ -87,8 +87,7 @@ class SwitchbotVacuumEntity(SwitchbotEntity, StateVacuumEntity):
|
|||||||
|
|
||||||
_device: switchbot.SwitchbotVacuum
|
_device: switchbot.SwitchbotVacuum
|
||||||
_attr_supported_features = (
|
_attr_supported_features = (
|
||||||
VacuumEntityFeature.BATTERY
|
VacuumEntityFeature.RETURN_HOME
|
||||||
| VacuumEntityFeature.RETURN_HOME
|
|
||||||
| VacuumEntityFeature.START
|
| VacuumEntityFeature.START
|
||||||
| VacuumEntityFeature.STATE
|
| VacuumEntityFeature.STATE
|
||||||
)
|
)
|
||||||
@@ -108,11 +107,6 @@ class SwitchbotVacuumEntity(SwitchbotEntity, StateVacuumEntity):
|
|||||||
status_code = self._device.get_work_status()
|
status_code = self._device.get_work_status()
|
||||||
return SWITCHBOT_VACUUM_STATE_MAP[self.protocol_version].get(status_code)
|
return SWITCHBOT_VACUUM_STATE_MAP[self.protocol_version].get(status_code)
|
||||||
|
|
||||||
@property
|
|
||||||
def battery_level(self) -> int:
|
|
||||||
"""Return the vacuum battery."""
|
|
||||||
return self._device.get_battery()
|
|
||||||
|
|
||||||
async def async_start(self) -> None:
|
async def async_start(self) -> None:
|
||||||
"""Start or resume the cleaning task."""
|
"""Start or resume the cleaning task."""
|
||||||
self._last_run_success = bool(
|
self._last_run_success = bool(
|
||||||
|
Reference in New Issue
Block a user