diff --git a/sensor/asterisk_ami.py b/sensor/asterisk_ami.py index eb6ed8c..dbf0b3d 100644 --- a/sensor/asterisk_ami.py +++ b/sensor/asterisk_ami.py @@ -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):