pantherale0 / ha-nintendoparentalcontrols

Home Assistant integration for Nintendo Switch Parental Controls
MIT License
81 stars 7 forks source link

Time Remaining shouldn't show more time than set in play_time_limit #98

Closed JokerGermany closed 6 months ago

JokerGermany commented 6 months ago

2024.3.2

Describe the issue

Time Remaining shouldn't show more time than set in play_time_limit Playtime: 180 Minutes Time Remaining: 5:53:32 (until bedtime)

Reproduction steps

  1. set a bed time
  2. set a low play time limit
  3. Time Remaining time shows the time until bed time, but don't takes the play time limit into account
pantherale0 commented 6 months ago

Left the wrong operator in from testing by mistake, should be fixed now.

JokerGermany commented 6 months ago

looks good, thanks