Unable to Register Application - Android

I am trying to get the official HA Android app set up on my phone and run into the following error:

Unable to register application. Please check to ensure you have mobile_app integration enabled on your home assistant instance.

In the logs I see:

Error handling request
Traceback (most recent call last):
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py”, line 422, in _handle_request
resp = await self._request_handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_app.py”, line 499, in _handle
resp = await handler(request)
File “/usr/local/lib/python3.8/site-packages/aiohttp/web_middlewares.py”, line 119, in impl
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/security_filter.py”, line 56, in security_filter_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/request_context.py”, line 18, in request_context_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/ban.py”, line 72, in ban_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/auth.py”, line 129, in auth_middleware
return await handler(request)
File “/usr/src/homeassistant/homeassistant/components/http/view.py”, line 129, in handle
result = await result
File “/usr/src/homeassistant/homeassistant/components/http/data_validator.py”, line 60, in wrapper
result = await method(view, request, *args, **kwargs)
File “/usr/src/homeassistant/homeassistant/components/mobile_app/http_api.py”, line 94, in post
await hass.async_create_task(
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 133, in async_init
result = await self._async_handle_step(
File “/usr/src/homeassistant/homeassistant/data_entry_flow.py”, line 216, in _async_handle_step
result: Dict = await getattr(flow, method)(user_input)
File “/usr/src/homeassistant/homeassistant/components/mobile_app/config_flow.py”, line 46, in async_step_registration
await person.async_add_user_device_tracker(
File “/usr/src/homeassistant/homeassistant/components/person/init.py”, line 119, in async_add_user_device_tracker
await coll.async_update_item(
File “/usr/src/homeassistant/homeassistant/helpers/collection.py”, line 245, in async_update_item
await self.notify_changes(
File “/usr/src/homeassistant/homeassistant/helpers/collection.py”, line 125, in notify_changes
await asyncio.gather(
File “/usr/src/homeassistant/homeassistant/helpers/collection.py”, line 333, in _collection_changed
await entities[item_id].async_update_config(config) # type: ignore
File “/usr/src/homeassistant/homeassistant/components/person/init.py”, line 455, in async_update_config
self._unsub_track_device = async_track_state_change_event(
File “/usr/src/homeassistant/homeassistant/helpers/event.py”, line 261, in async_track_state_change_event
entity_callbacks = hass.data.setdefault(TRACK_STATE_CHANGE_CALLBACKS, {})
AttributeError: ‘NoneType’ object has no attribute ‘data’

I am running Home Assistant 2021.3.4 in Docker on a Synology NAS and my phone is a stock Samsung Galaxy S8. Additionally, the official IOS app works fine on my old ipad. It doesn’t make any difference if I add the mobile_app: line.

Any help would be very much appreciated.

Can anyone help?

In case anyone else comes across this problem: if i add a new user and then log into the app as that user all is well. However, this was not a suitable solution for me and so I ended up starting again by deleting the .storage folder in /config

1 Like