Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion homeassistant/components/camera/neato.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def camera_image(self):
self.update()
return self._image

@Throttle(timedelta(seconds=10))
@Throttle(timedelta(seconds=60))
def update(self):
"""Check the contents of the map list."""
self.neato.update_robots()
Expand Down
6 changes: 3 additions & 3 deletions homeassistant/components/neato.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@

_LOGGER = logging.getLogger(__name__)

REQUIREMENTS = ['https://github.com/jabesq/pybotvac/archive/v0.0.5.zip'
'#pybotvac==0.0.5']
REQUIREMENTS = ['https://github.com/jabesq/pybotvac/archive/v0.0.6.zip'
'#pybotvac==0.0.6']

DOMAIN = 'neato'
NEATO_ROBOTS = 'neato_robots'
Expand Down Expand Up @@ -122,7 +122,7 @@ def login(self):
_LOGGER.error("Unable to connect to Neato API")
return False

@Throttle(timedelta(seconds=1))
@Throttle(timedelta(seconds=60))
def update_robots(self):
"""Update the robot states."""
_LOGGER.debug("Running HUB.update_robots %s",
Expand Down
3 changes: 3 additions & 0 deletions homeassistant/components/switch/neato.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
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__)

Expand Down Expand Up @@ -50,6 +52,7 @@ def __init__(self, hass, robot, switch_type):
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")
Expand Down
4 changes: 3 additions & 1 deletion homeassistant/components/vacuum/neato.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
https://home-assistant.io/components/vacuum.neato/
"""
import logging

from datetime import timedelta
import requests

from homeassistant.const import STATE_OFF, STATE_ON
Expand All @@ -15,6 +15,7 @@
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__)

Expand Down Expand Up @@ -62,6 +63,7 @@ def __init__(self, hass, robot):
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")
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ https://github.com/tgaugry/suds-passworddigest-py3/archive/86fc50e39b4d2b89974819
httplib2==0.10.3

# homeassistant.components.neato
https://github.com/jabesq/pybotvac/archive/v0.0.5.zip#pybotvac==0.0.5
https://github.com/jabesq/pybotvac/archive/v0.0.6.zip#pybotvac==0.0.6

# homeassistant.components.sensor.gtfs
https://github.com/robbiet480/pygtfs/archive/00546724e4bbcb3053110d844ca44e2246267dd8.zip#pygtfs==0.1.3
Expand Down