mirror of
https://github.com/home-assistant/core.git
synced 2025-09-13 16:51:37 +02:00
Remove the battery feature from supported features (#150101)
This commit is contained in:
@@ -51,11 +51,6 @@ class IRobotEntity(Entity):
|
||||
"""Return the uniqueid of the vacuum cleaner."""
|
||||
return self.robot_unique_id
|
||||
|
||||
@property
|
||||
def battery_level(self):
|
||||
"""Return the battery level of the vacuum cleaner."""
|
||||
return self.vacuum_state.get("batPct")
|
||||
|
||||
@property
|
||||
def run_stats(self):
|
||||
"""Return the run stats."""
|
||||
|
@@ -35,7 +35,7 @@ SENSORS: list[RoombaSensorEntityDescription] = [
|
||||
native_unit_of_measurement=PERCENTAGE,
|
||||
device_class=SensorDeviceClass.BATTERY,
|
||||
entity_category=EntityCategory.DIAGNOSTIC,
|
||||
value_fn=lambda self: self.battery_level,
|
||||
value_fn=lambda self: self.vacuum_state.get("batPct"),
|
||||
),
|
||||
RoombaSensorEntityDescription(
|
||||
key="battery_cycles",
|
||||
|
@@ -24,8 +24,7 @@ from .entity import IRobotEntity
|
||||
from .models import RoombaData
|
||||
|
||||
SUPPORT_IROBOT = (
|
||||
VacuumEntityFeature.BATTERY
|
||||
| VacuumEntityFeature.PAUSE
|
||||
VacuumEntityFeature.PAUSE
|
||||
| VacuumEntityFeature.RETURN_HOME
|
||||
| VacuumEntityFeature.SEND_COMMAND
|
||||
| VacuumEntityFeature.START
|
||||
|
Reference in New Issue
Block a user