Error setting up platform phicomm_k3
Traceback (most recent call last):
File "/opt/lib/python3.7/site-packages/homeassistant/components/device_tracker/__init__.py", line 176, in async_setup_platform
platform.get_scanner, hass, {DOMAIN: p_config})
File "/thread.py", line 57, in run
File "/tmp/share/sda1/root/.homeassistant/custom_components/device_tracker/phicomm_k3.py", line 56, in get_scanner
scanner = PhicommDeviceScanner(config[DOMAIN])
File "/tmp/share/sda1/root/.homeassistant/custom_components/device_tracker/phicomm_k3.py", line 100, in __init__
data = self.connection.get_result()
File "/tmp/share/sda1/root/.homeassistant/custom_components/device_tracker/phicomm_k3.py", line 172, in get_result
from pexpect import pxssh, exceptions
File "/tmp/share/sda1/root/.homeassistant/deps/lib/python3.7/site-packages/pexpect/__init__.py", line 75, in <module>
from .pty_spawn import spawn, spawnu
File "/tmp/share/sda1/root/.homeassistant/deps/lib/python3.7/site-packages/pexpect/pty_spawn.py", line 15, in <module>
from .spawnbase import SpawnBase
File "/tmp/share/sda1/root/.homeassistant/deps/lib/python3.7/site-packages/pexpect/spawnbase.py", line 218
def expect(self, pattern, timeout=-1, searchwindowsize=-1, async=False):
^
SyntaxError: invalid syntax