Add litter level sensor for Litter-Robot 4 (#78602)

Co-authored-by: J. Nick Koston <nick@koston.org>
This commit is contained in:
Nathan Spencer 2022-09-17 04:03:12 -06:00 committed by GitHub
parent cc51052be5
commit c3ca9f3ad1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -100,12 +100,18 @@ ROBOT_SENSOR_MAP: dict[type[Robot], list[RobotSensorEntityDescription]] = {
),
],
LitterRobot4: [
RobotSensorEntityDescription[LitterRobot4](
key="litter_level",
name="Litter level",
native_unit_of_measurement=PERCENTAGE,
icon_fn=lambda state: icon_for_gauge_level(state, 10),
),
RobotSensorEntityDescription[LitterRobot4](
key="pet_weight",
name="Pet weight",
icon="mdi:scale",
native_unit_of_measurement=MASS_POUNDS,
)
),
],
FeederRobot: [
RobotSensorEntityDescription[FeederRobot](