gazoodle / gecko-home-assistant

Home Assistant integration for spas equipped with Gecko Alliance in.touch2 modules
MIT License
69 stars 24 forks source link

Exception during entry setup #26

Closed nyxfpv closed 2 years ago

nyxfpv commented 3 years ago

Good Morning all, I just installed the integration and I'm running into the following. can anyone assist me with this

Exception during entry setup Traceback (most recent call last): File "/config/custom_components/gecko/init.py", line 47, in async_setup_entry while not facade.is_connected: File "/usr/local/lib/python3.8/site-packages/geckolib/automation/facade.py", line 68, in is_connected if not self._spa.is_connected: File "/usr/local/lib/python3.8/site-packages/geckolib/spa.py", line 306, in is_connected raise RuntimeError("Spa took too long to connect ...") RuntimeError: Spa took too long to connect ...

nyxfpv commented 3 years ago

System Health

version core-2021.6.6
installation_type Home Assistant OS
dev false
hassio true
docker true
virtualenv false
python_version 3.8.9
os_name Linux
os_version 5.10.45
arch x86_64
timezone America/New_York
Home Assistant Community Store GitHub API | ok -- | -- Github API Calls Remaining | 4943 Installed Version | 1.13.2 Stage | running Available Repositories | 847 Installed Repositories | 8
Home Assistant Cloud logged_in | true -- | -- subscription_expiration | July 18, 2021, 8:00 PM relayer_connected | true remote_enabled | true remote_connected | true alexa_enabled | true google_enabled | true can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 6.1 -- | -- update_channel | stable supervisor_version | supervisor-2021.06.8 docker_version | 20.10.6 disk_total | 30.8 GB disk_used | 10.1 GB healthy | true supported | true board | ova supervisor_api | ok version_api | ok installed_addons | File editor (5.3.1), Samba share (9.5.1), Visual Studio Code (3.5.0), AirCast (3.1.1), Terminal & SSH (9.1.3), Mosquitto broker (6.0.1), Node-RED (9.2.0), Home Assistant Google Drive Backup (0.104.3), Zigbee2mqtt (1.18.1-1)
Lovelace dashboards | 4 -- | -- resources | 1 views | 12 mode | storage
Quellweg22 commented 3 years ago

same issue during setup ... logfile:

Logger: homeassistant.util.async Source: util/async.py:132 First occurred: 18:16:15 (3 occurrences) Last logged: 18:32:00

Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for gecko doing I/O at custom_components/gecko/init.py, line 45: facade = locator.get_spa_from_identifier(spa_identifier).get_facade(False)

Logger: customcomponents.gecko Source: util/async.py:140 Integration: Gecko (documentation, issues) First occurred: 18:16:15 (3 occurrences) Last logged: 18:32:00

Exception during entry setup Traceback (most recent call last): File "/config/custom_components/gecko/init.py", line 45, in async_setup_entry facade = locator.get_spa_from_identifier(spa_identifier).get_facade(False) File "/usr/local/lib/python3.9/site-packages/geckolib/spa.py", line 46, in get_facade facade = GeckoFacade(GeckoSpa(self).start_connect()) File "/usr/local/lib/python3.9/site-packages/geckolib/spa.py", line 73, in init GeckoSpaPack.init(self) File "/usr/local/lib/python3.9/site-packages/geckolib/driver/spapack.py", line 15, in init GeckoSpaPack.download_if_needed() File "/usr/local/lib/python3.9/site-packages/geckolib/driver/spapack.py", line 32, in download_if_needed GeckoSpaPack.download() File "/usr/local/lib/python3.9/site-packages/geckolib/driver/spapack.py", line 39, in download response = http.request( File "/usr/local/lib/python3.9/site-packages/urllib3/request.py", line 74, in request return self.request_encode_url( File "/usr/local/lib/python3.9/site-packages/urllib3/request.py", line 96, in request_encode_url return self.urlopen(method, url, extra_kw) File "/usr/local/lib/python3.9/site-packages/urllib3/poolmanager.py", line 375, in urlopen response = conn.urlopen(method, u.request_uri, kw) File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 699, in urlopen httplib_response = self._make_request( File "/usr/local/lib/python3.9/site-packages/urllib3/connectionpool.py", line 394, in _make_request conn.request(method, url, httplib_request_kw) File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 234, in request super(HTTPConnection, self).request(method, url, body=body, headers=headers) File "/usr/local/lib/python3.9/http/client.py", line 1253, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/local/lib/python3.9/http/client.py", line 1264, in _send_request self.putrequest(method, url, skips) File "/usr/local/lib/python3.9/site-packages/urllib3/connection.py", line 214, in putrequest return HTTPConnection.putrequest(self, method, url, *args, **kwargs) File "/usr/src/homeassistant/homeassistant/util/async.py", line 151, in protected_loop_func checkloop() File "/usr/src/homeassistant/homeassistant/util/async.py", line 140, in check_loop raise RuntimeError( RuntimeError: I/O must be done in the executor; Use await hass.async_add_executor_job() at custom_components/gecko/init.py, line 45: facade = locator.get_spa_from_identifier(spa_identifier).get_facade(False)

gazoodle commented 2 years ago

v0.0.8 should fix this