pjennings / Python-TStat

Python interface for Radio Thermostat thermostats
http://central.isaroach.com/wiki/index.php/Main_Page
17 stars 8 forks source link

Failure with self.api.has_key #5

Open bridavis opened 11 years ago

bridavis commented 11 years ago

This is likely a simple error, but I don't know enough about python to figure it out. Getting the following error when trying a simple getCurrentTemp.

from TStat import * t = TStat('192.168.1.127') t.getCurrentTemp() Traceback (most recent call last): File "", line 1, in File "TStat.py", line 274, in getCurrentTemp return self._get('temp', raw) File "TStat.py", line 181, in _get if not self.api.has_key(key): AttributeError: 'NoneType' object has no attribute 'has_key'

Not quite sure what I'm doing wrong. Any ideas?