Skip to content

Commit

Permalink
Fixed issue #3624 and bumped python-nest to 2.10.0 version (#3665)
Browse files Browse the repository at this point in the history
* Fixed issue #3624 and bumped python-nest to 2.10.0 version

*    Fixed return state when accessing attribute operation_mode

* Fixed typo
  • Loading branch information
tchellomello authored and balloob committed Oct 5, 2016
1 parent 4f0064b commit 70fc940
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

_LOGGER = logging.getLogger(__name__)

REQUIREMENTS = ['python-nest==2.9.2']
REQUIREMENTS = ['python-nest==2.10.0']

DOMAIN = 'nest'

Expand Down
5 changes: 4 additions & 1 deletion homeassistant/components/sensor/nest.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,10 @@ class NestBasicSensor(NestSensor):
@property
def state(self):
"""Return the state of the sensor."""
return getattr(self.device, self.variable)
if self.variable == 'operation_mode':
return getattr(self.device, "mode")
else:
return getattr(self.device, self.variable)

@property
def unit_of_measurement(self):
Expand Down
2 changes: 1 addition & 1 deletion requirements_all.txt
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ python-mpd2==0.5.5
python-mystrom==0.3.6

# homeassistant.components.nest
python-nest==2.9.2
python-nest==2.10.0

# homeassistant.components.device_tracker.nmap_tracker
python-nmap==0.6.1
Expand Down

0 comments on commit 70fc940

Please sign in to comment.