Skip to content

KeyError problem #47

@LukaszP2

Description

@LukaszP2

Some times I got KeyError problem. Chatgps suggest:
@property def auto_shut_off_time_limit(self): return self._device_information["auto_shut_off_time_limit"]
to
@property def auto_shut_off_time_limit(self): return self._device_information.get("auto_shut_off_time_limit")

and this works for me. Can we change for all property?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions