Skip to content

Use of additional params for certain countries #3682

Description

@gjohansson-ST

Is your feature request related to a problem? Please describe.
Some countries has additional params during the creation of the country class (ex. Sweden apply include_sundays).

These additional params not being part of the base class nor the utils available for creating the country dict, makes it very hard to use them in projects like Home Assistant where a user can select which country and/or region he wishes to use.

Describe the solution you'd like

  1. These would be available in the base class and utils.
  2. Add method to turn it on/off (add/remove)
  3. Another solution is to reference them in a constant or something in the module so possible to read them "easily" to see if such is available to use. That's not an ideal solution, but could be made to work somehow at least.

It seems discussions are closed, I opened this more for having a discussion rather than an issue.
I can make a fix if we can agree on how to solve it. Seems this is quite a legacy thing existing for many years.

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions