Skip to content

Commit

Permalink
Update asterisk_ami.py
Browse files Browse the repository at this point in the history
  • Loading branch information
girlpunk authored Sep 4, 2018
1 parent ab21857 commit 14d4ad1
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions sensor/asterisk_ami.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,11 +49,6 @@ def update(self):
self._state = 'connected'
else:
self._state = 'disconnected'
try:
manager.connect(host, port)
login_status = manager.login(username=username, secret=password).get_header("Response")
except asterisk.manager.ManagerException as exception:
_LOGGER.error("Error connecting to Asterisk: %s", exception.args[1])


class AsteriskExtension(Entity):
Expand Down

0 comments on commit 14d4ad1

Please sign in to comment.