dwyl/smart-home-auth-server

Registering a device on connection errors

Closed this issue · 1 comments

Smart hub is set up to register devices when they first connect, however I've since changed some attributes which has broken this:

2020-08-20T11:23:15.965480+00:00 app[web.1]: 11:23:15.965 [error] an exception was raised:
2020-08-20T11:23:15.965481+00:00 app[web.1]:     ** (ArgumentError) argument error
2020-08-20T11:23:15.965482+00:00 app[web.1]:         :erlang.apply({:error, #Ecto.Changeset<action: :insert, changes: %{serial: "Toms-MacBook-Pro"}, errors: [feature_flags: {"can't be blank", [validation: :required]}], data: #SmartHomeAuth.Access.Door<>, valid?: false>}, :uuid, [])

I need to revisit the device creation logic

Fixed in 6e2f5d1