Ludy87 / xplora_watch

Xplora® Watch Home Assistant Integration
MIT License
50 stars 6 forks source link

🐛 Integration error when adding new watch #132

Closed hauard closed 1 year ago

hauard commented 1 year ago

What version of Integration has the issue?

Latest release, 2.5.5

System Health details

System Information

version core-2022.12.4
installation_type Home Assistant OS
dev false
hassio true
docker true
user root
virtualenv false
python_version 3.10.7
os_name Linux
os_version 5.15.61-v8
arch aarch64
timezone Europe/Oslo
config_dir /config
Home Assistant Community Store GitHub API | ok -- | -- GitHub Content | ok GitHub Web | ok GitHub API Calls Remaining | 4724 Installed Version | 1.28.4 Stage | running Available Repositories | 1157 Downloaded Repositories | 11
Home Assistant Cloud logged_in | false -- | -- can_reach_cert_server | ok can_reach_cloud_auth | ok can_reach_cloud | ok
Home Assistant Supervisor host_os | Home Assistant OS 9.3 -- | -- update_channel | stable supervisor_version | supervisor-2022.11.2 agent_version | 1.4.1 docker_version | 20.10.18 disk_total | 219.4 GB disk_used | 13.4 GB healthy | true supported | true board | rpi4-64 supervisor_api | ok version_api | ok installed_addons | File editor (5.4.2), Home Assistant Google Drive Backup (0.109.2), NGINX Home Assistant SSL proxy (3.2.0), Samba share (10.0.0), Node-RED (14.0.0), SSH & Web Terminal (13.0.0), Log Viewer (0.14.0), Mosquitto broker (6.1.3), Let's Encrypt (4.12.7), Grafana (8.1.0), InfluxDB (4.5.0), AppDaemon (0.10.1), MQTT IO (0.1.3), Glances (0.17.1), ESPHome (2022.11.5)
Dashboards dashboards | 3 -- | -- resources | 4 views | 9 mode | storage
Recorder oldest_recorder_run | 12. desember 2022 kl. 12:30 -- | -- current_recorder_run | 13. desember 2022 kl. 08:45 estimated_db_size | 409.09 MiB database_engine | sqlite database_version | 3.38.5

Checklist

Describe the issue

Getting error when trying to add new watch.

Have tried reinstalling the integration, in both HACS and the "integration" page. Restarted numerous times inbetween.

Reproduction steps

  1. Integrations page -> Add integration -> Xplora
  2. Log in with phone number -> Filling in watch settings
  3. When hitting the "Next" button, I get this: setting_xplora
  4. This shows up in the logs: xplora_log

...

Debug logs

Denne feilen stammer fra en tilpasset integrasjon.

Logger: custom_components.xplora_watch.config_flow
Source: custom_components/xplora_watch/config_flow.py:83
Integration: Xplora® Watch (documentation, issues)
First occurred: 08:49:11 (1 occurrences)
Last logged: 08:49:11

'NoneType' object has no attribute 'checkEmailOrPhoneExist_a'
Traceback (most recent call last):
  File "/config/custom_components/xplora_watch/config_flow.py", line 167, in async_step_user_phone
    info = await validate_input(self.hass, user_input)
  File "/config/custom_components/xplora_watch/config_flow.py", line 83, in validate_input
    if not await account.checkEmailOrPhoneExist(
  File "/usr/local/lib/python3.10/site-packages/pyxplora_api/pyxplora_api_async.py", line 685, in checkEmailOrPhoneExist
    data = await self._gqlHandler.checkEmailOrPhoneExist_a(type, email, countryCode, phoneNumber)
AttributeError: 'NoneType' object has no attribute 'checkEmailOrPhoneExist_a'
github-actions[bot] commented 1 year ago

:wave: @hauard, it is checked whether there is a bug. Please have some patience. This action was performed automatically.

github-actions[bot] commented 1 year ago

:wave: @hauard, we found the bug, it will be fixed shortly. This action was performed automatically.