mirror of
https://github.com/home-assistant/core.git
synced 2025-07-19 11:17:21 +00:00
Remove update_before_add from roomba (#102337)
This commit is contained in:
parent
22c21fdc18
commit
b57af4e404
@ -21,7 +21,7 @@ async def async_setup_entry(
|
|||||||
status = roomba_reported_state(roomba).get("bin", {})
|
status = roomba_reported_state(roomba).get("bin", {})
|
||||||
if "full" in status:
|
if "full" in status:
|
||||||
roomba_vac = RoombaBinStatus(roomba, blid)
|
roomba_vac = RoombaBinStatus(roomba, blid)
|
||||||
async_add_entities([roomba_vac], True)
|
async_add_entities([roomba_vac])
|
||||||
|
|
||||||
|
|
||||||
class RoombaBinStatus(IRobotEntity, BinarySensorEntity):
|
class RoombaBinStatus(IRobotEntity, BinarySensorEntity):
|
||||||
|
@ -45,7 +45,6 @@ async def async_setup_entry(
|
|||||||
roomba_failed_missions,
|
roomba_failed_missions,
|
||||||
roomba_scrubs_count,
|
roomba_scrubs_count,
|
||||||
],
|
],
|
||||||
True,
|
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
@ -36,4 +36,4 @@ async def async_setup_entry(
|
|||||||
constructor = RoombaVacuum
|
constructor = RoombaVacuum
|
||||||
|
|
||||||
roomba_vac = constructor(roomba, blid)
|
roomba_vac = constructor(roomba, blid)
|
||||||
async_add_entities([roomba_vac], True)
|
async_add_entities([roomba_vac])
|
||||||
|
Loading…
x
Reference in New Issue
Block a user