mirror of
https://github.com/home-assistant/core.git
synced 2025-09-19 01:49:32 +00:00
Get Litter-Robot to 100% code coverage and minor code cleanup (#58704)
This commit is contained in:
@@ -23,14 +23,14 @@ async def async_setup_entry(
|
||||
"""Set up Litter-Robot selects using config entry."""
|
||||
hub: LitterRobotHub = hass.data[DOMAIN][config_entry.entry_id]
|
||||
|
||||
entities = [
|
||||
LitterRobotSelect(
|
||||
robot=robot, entity_type=TYPE_CLEAN_CYCLE_WAIT_TIME_MINUTES, hub=hub
|
||||
)
|
||||
for robot in hub.account.robots
|
||||
]
|
||||
|
||||
async_add_entities(entities)
|
||||
async_add_entities(
|
||||
[
|
||||
LitterRobotSelect(
|
||||
robot=robot, entity_type=TYPE_CLEAN_CYCLE_WAIT_TIME_MINUTES, hub=hub
|
||||
)
|
||||
for robot in hub.account.robots
|
||||
]
|
||||
)
|
||||
|
||||
|
||||
class LitterRobotSelect(LitterRobotControlEntity, SelectEntity):
|
||||
|
Reference in New Issue
Block a user