Skip to content

It would be useful to make _generate_api_query_payload a public class method #36

Description

@Artem-B

def _generate_api_query_payload(self, scan_interval, device_tz):

In order to use a custom payload, it's useful to have the known good reference, provided by the _generate_api_query_payload.
Considering that the payload is needed to initialize FlumeData itself, the methos providing such a collection of queries should be a class method.
Fortunately, _generate_api_query_payload does not use self, so it's just a matter of renaming it, and adding @classmethod decorator.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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