Skip to content

Days in price configuration are not month-dependent #1165

@fcavalca

Description

@fcavalca

Describe the bug
When choosing time-dependent fees in price configuration, the days dropdown always goes from 1 to 31, independently of the month chosen.

To Reproduce
Steps to reproduce the behavior:

  1. Go to Settings
  2. Click on Configure Price
  3. Scroll down to any modifier
  4. Click on the dropdown for days
  5. The array goes from 1 to 31

Expected behavior
I expect that the available days to choose depends on the month selected. I don't know what would happen if I selected e.g. Feb 31.

Screenshots

Image

Hardware information:

  • Country: Denmark
  • Meter: Kamstrup
  • Encryption enabled [yes/no]
  • AMS reader: Pow-K+
  • M-bus adapter (if applicable):

Relevant firmware information:

  • Version: v2.5.6
  • MQTT: yes
  • MQTT payload type: home-assistant

Metadata

Metadata

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions