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
14 changes: 8 additions & 6 deletions homeassistant/components/climate/radiotherm.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
CONF_HOST, TEMP_FAHRENHEIT, ATTR_TEMPERATURE, PRECISION_HALVES)
import homeassistant.helpers.config_validation as cv

REQUIREMENTS = ['radiotherm==1.4.1']
REQUIREMENTS = ['radiotherm==2.0.0']

_LOGGER = logging.getLogger(__name__)

Expand Down Expand Up @@ -235,13 +235,15 @@ def update(self):
self._name = self.device.name['raw']

# Request the current state from the thermostat.
data = self.device.tstat['raw']
import radiotherm
try:
data = self.device.tstat['raw']
except radiotherm.validate.RadiothermTstatError:
_LOGGER.error('%s (%s) was busy (invalid value returned)',
self._name, self.device.host)
return

current_temp = data['temp']
if current_temp == -1:
_LOGGER.error('%s (%s) was busy (temp == -1)', self._name,
self.device.host)
return

# Map thermostat values into various STATE_ flags.
self._current_temperature = current_temp
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1352,7 +1352,7 @@ quantum-gateway==0.0.3
rachiopy==0.1.3

# homeassistant.components.climate.radiotherm
radiotherm==1.4.1
radiotherm==2.0.0

# homeassistant.components.raincloud
raincloudy==0.0.5
Expand Down