You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think I've spotted why new imports from TeslaFi are failing.
When they changed the polling method, the "battery_level" field changed from being an integer to float
So it no longer mostly matches "usable_battery_level"
usable_battery_level would be 57 but battery_level is now 57.35 for instance and the import fails with a "errors: [ battery_level: {"is invalid", [type: :integer, validation: :cast]} ]
Because it's no longer an integer
I opened the files and changed them to integer and the import worked fine
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I think I've spotted why new imports from TeslaFi are failing.
When they changed the polling method, the "battery_level" field changed from being an integer to float
So it no longer mostly matches "usable_battery_level"
usable_battery_level would be 57 but battery_level is now 57.35 for instance and the import fails with a "errors: [ battery_level: {"is invalid", [type: :integer, validation: :cast]} ]
Because it's no longer an integer
I opened the files and changed them to integer and the import worked fine
Beta Was this translation helpful? Give feedback.
All reactions