Add custom and zone cleaning to Neato Vacuums (#20779)
* Adding custom and zone cleaning to Neato Vacuums * Fixing line length and missing imports * Line too long * Adding details to the custom service * Fix linting issues * Reverting ACTION * Code cleanup * Typo * Requested modifications * Changing the custom service domain * No service schema depency anymore * Removing useless code * Linting * Requested changes * Requested changes for domain * Revert the service domain back to vacuum
This commit is contained in:
1 parent
dc5b8fd8c4
commit
a8a2daeac5
3 files changed
+100
-5
No files matched your search
@@ -18,6 +18,7 @@ DOMAIN = 'neato'
|
||||
NEATO_ROBOTS = 'neato_robots'
|
||||
NEATO_LOGIN = 'neato_login'
|
||||
NEATO_MAP_DATA = 'neato_map_data'
|
||||
NEATO_PERSISTENT_MAPS = 'neato_persistent_maps'
|
||||
|
||||
CONFIG_SCHEMA = vol.Schema({
|
||||
DOMAIN: vol.Schema({
|
||||
@@ -197,6 +198,7 @@ class NeatoHub:
|
||||
domain_config[CONF_USERNAME],
|
||||
domain_config[CONF_PASSWORD])
|
||||
self._hass.data[NEATO_ROBOTS] = self.my_neato.robots
|
||||
self._hass.data[NEATO_PERSISTENT_MAPS] = self.my_neato.persistent_maps
|
||||
self._hass.data[NEATO_MAP_DATA] = self.my_neato.maps
|
||||
|
||||
def login(self):
|
||||
@@ -216,6 +218,7 @@ class NeatoHub:
|
||||
_LOGGER.debug("Running HUB.update_robots %s",
|
||||
self._hass.data[NEATO_ROBOTS])
|
||||
self._hass.data[NEATO_ROBOTS] = self.my_neato.robots
|
||||
self._hass.data[NEATO_PERSISTENT_MAPS] = self.my_neato.persistent_maps
|
||||
self._hass.data[NEATO_MAP_DATA] = self.my_neato.maps
|
||||
|
||||
def download_map(self, url):
|
||||
|
||||
Reference in new issue
Block a user