Skip to content

Commit

Permalink
Has key (#3)
Browse files Browse the repository at this point in the history
* Replace has_key usage

* bump version
  • Loading branch information
dlbroadfoot authored May 5, 2018
1 parent 7033bfc commit f0f1a5b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pygogogate2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ def activate(self, device_id, expected_current_state):
if not self.apicode:
self.get_devices()

if self._device_states.has_key(device_id):
if device_id in self._device_states:
current_state = self._device_states[device_id]
if expected_current_state != current_state:
self.logger.warning('Gogogate2 - Will not activate. Device not in expected current state %s. Actual state %s', expected_current_state, current_state)
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setup(
name='pygogogate2',
version='0.0.9',
version='0.1.0',
description='Python package for controlling Gogogate2-Enabled Garage Door',
author='David Broadfoot',
author_email='[email protected]',
Expand Down

0 comments on commit f0f1a5b

Please sign in to comment.