dwyl / smart-home-auth-server

The authorisation server for dwyl/smart-home-security-system
GNU General Public License v2.0
5 stars 1 forks source link

Registering a device on connection errors #20

Closed th0mas closed 3 years ago

th0mas commented 3 years ago

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

th0mas commented 3 years ago

Fixed in 6e2f5d1