From 29342927779aee6545834b7e9f13b0ab21ec8ec3 Mon Sep 17 00:00:00 2001 From: sevorl <81764300+sevorl@users.noreply.github.com> Date: Mon, 25 Mar 2024 10:05:21 +0100 Subject: [PATCH] Change play_time_limit from slider to box the play time limit is difficult to set to a precise value with the slider. I suggest to change this to a box, so it is possible to type in a number using the keyboard --- custom_components/nintendo_parental/number.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_components/nintendo_parental/number.py b/custom_components/nintendo_parental/number.py index c403a2e..f6ac282 100644 --- a/custom_components/nintendo_parental/number.py +++ b/custom_components/nintendo_parental/number.py @@ -38,7 +38,7 @@ class ScreenTimeEntity(NintendoDevice, NumberEntity): """A screen time entity.""" _attr_should_poll = True - _attr_mode = NumberMode.SLIDER + _attr_mode = NumberMode.BOX _attr_native_max_value = 360 _attr_native_step = 1 _attr_native_unit_of_measurement = "min"