Skip to content

Overriding hardware version #388

Open
@oscgonfer

Description

@oscgonfer

Probably an edge use case.
This device is a SCK2.1 device originally, and likely during migration, the device has a "fixed" version, that ignores the new hw_info payloads.

You can see that it "should" be a SCK2.2 in the last_status_message:

https://api.smartcitizen.me/v0/devices/10943

Not really a problem though. This device in particular has a hardware_version_override coming from the migration from kits refactor (here)

def hardware_version
hardware_version_override || hardware_info&.fetch('hw_ver', nil)
end

If I removed the hardware_version_override setting it to null on that particular device, I guess it will start listening back to info? @timcowlishaw

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions