diff --git a/homeassistant/components/camera/neato.py b/homeassistant/components/camera/neato.py index b080dbbae10..4df423344bb 100644 --- a/homeassistant/components/camera/neato.py +++ b/homeassistant/components/camera/neato.py @@ -63,3 +63,8 @@ class NeatoCleaningMap(Camera): def name(self): """Return the name of this camera.""" return self._robot_name + + @property + def unique_id(self): + """Return unique ID.""" + return self._robot_serial diff --git a/homeassistant/components/switch/neato.py b/homeassistant/components/switch/neato.py index d9850c1589a..0b49cb71ba2 100644 --- a/homeassistant/components/switch/neato.py +++ b/homeassistant/components/switch/neato.py @@ -52,6 +52,7 @@ class NeatoConnectedSwitch(ToggleEntity): self._state = None self._schedule_state = None self._clean_state = None + self._robot_serial = self.robot.serial def update(self): """Update the states of Neato switches.""" @@ -83,6 +84,11 @@ class NeatoConnectedSwitch(ToggleEntity): """Return True if entity is available.""" return self._state + @property + def unique_id(self): + """Return a unique ID.""" + return self._robot_serial + @property def is_on(self): """Return true if switch is on.""" diff --git a/homeassistant/components/vacuum/neato.py b/homeassistant/components/vacuum/neato.py index aa446f8cd20..53f83a1de1d 100644 --- a/homeassistant/components/vacuum/neato.py +++ b/homeassistant/components/vacuum/neato.py @@ -66,6 +66,7 @@ class NeatoConnectedVacuum(StateVacuumDevice): self.clean_suspension_time = None self._available = False self._battery_level = None + self._robot_serial = self.robot.serial def update(self): """Update the states of Neato Vacuums.""" @@ -156,6 +157,11 @@ class NeatoConnectedVacuum(StateVacuumDevice): """Return the status of the vacuum cleaner.""" return self._clean_state + @property + def unique_id(self): + """Return a unique ID.""" + return self._robot_serial + @property def device_state_attributes(self): """Return the state attributes of the vacuum cleaner."""