Finalize BotVac D7 Support And Further Reduce Cloud Calls (#15161)

* Finalize BotVac D7 Support And Further Reduce Cloud Calls

* Lint

* Lint Again

* Implement requested changes

* Hound

* Lint
This commit is contained in:
Daniel Shokouhi authored and Pascal Vizeli committed 2018-06-27 22:55:27 +02:00
1 parent 9066ac44fe
commit 4fbe3bb070
4 files changed
+37 -10

No files matched your search

+2 -2
View File
@@ -10,12 +10,13 @@ import requests
from homeassistant.const import STATE_OFF, STATE_ON
from homeassistant.helpers.entity import ToggleEntity
from homeassistant.components.neato import NEATO_ROBOTS, NEATO_LOGIN
from homeassistant.util import Throttle
_LOGGER = logging.getLogger(__name__)
DEPENDENCIES = ['neato']
SCAN_INTERVAL = timedelta(minutes=10)
SWITCH_TYPE_SCHEDULE = 'schedule'
SWITCH_TYPES = {
@@ -52,7 +53,6 @@ class NeatoConnectedSwitch(ToggleEntity):
self._schedule_state = None
self._clean_state = None
@Throttle(timedelta(seconds=60))
def update(self):
"""Update the states of Neato switches."""
_LOGGER.debug("Running switch update")