mirror of
https://github.com/home-assistant/core.git
synced 2025-08-03 12:45:28 +02:00
Add neato boundary name to state if it exists (#29915)
* Add boundary name to state if it exists If the robot is cleaning a pre defined area with a name, add the name to the state-attribute. * Reformat patch * Removing whitespace * Even more formatting That black did not catch on first run...
This commit is contained in:
@@ -208,6 +208,13 @@ class NeatoConnectedVacuum(StateVacuumDevice):
|
||||
+ " "
|
||||
+ ACTION.get(self._state["action"])
|
||||
)
|
||||
if (
|
||||
"boundary" in self._state["cleaning"]
|
||||
and "name" in self._state["cleaning"]["boundary"]
|
||||
):
|
||||
self._status_state += (
|
||||
" " + self._state["cleaning"]["boundary"]["name"]
|
||||
)
|
||||
else:
|
||||
self._status_state = robot_alert
|
||||
elif self._state["state"] == 3:
|
||||
|
Reference in New Issue
Block a user