Update Neato Library And Reduce Cloud Calls (#15072)

* Update Neato library to 0.0.6 and reduce the amount of calls to the cloud

* Remove file commited in error

* Lint
This commit is contained in:
Daniel Shokouhi authored and Paulus Schoutsen committed 2018-06-20 21:46:15 -04:00
1 parent 8d22754a06
commit 6cabbd2592
5 files changed
+11 -6

No files matched your search

+3 -1
View File
@@ -5,7 +5,7 @@ For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/vacuum.neato/
"""
import logging
from datetime import timedelta
import requests
from homeassistant.const import STATE_OFF, STATE_ON
@@ -15,6 +15,7 @@ from homeassistant.components.vacuum import (
SUPPORT_MAP, ATTR_STATUS, ATTR_BATTERY_LEVEL, ATTR_BATTERY_ICON)
from homeassistant.components.neato import (
NEATO_ROBOTS, NEATO_LOGIN, NEATO_MAP_DATA, ACTION, ERRORS, MODE, ALERTS)
from homeassistant.util import Throttle
_LOGGER = logging.getLogger(__name__)
@@ -62,6 +63,7 @@ class NeatoConnectedVacuum(VacuumDevice):
self.clean_suspension_charge_count = None
self.clean_suspension_time = None
@Throttle(timedelta(seconds=60))
def update(self):
"""Update the states of Neato Vacuums."""
_LOGGER.debug("Running Neato Vacuums update")