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
View File
@@ -5,10 +5,12 @@ For more details about this platform, please refer to the documentation at
https://home-assistant.io/components/switch.neato/
"""
import logging
from datetime import timedelta
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__)
@@ -50,6 +52,7 @@ 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")