Closed pergolafabio closed 4 years ago
Some extra info
This isn't a bug, but rather the intended behavior. The system should not force a non-privileged UI to expose whether a pin code is required (the options flow exposes it, but it's an admin UI). An potential alternative could be to add configuration to the UI, and allow the admin to decide to hide the keypad, but that's not for me to decide.
As for Discord, I'm @on
Ah , strange, cause a week ago, when I tested your first integration, it didn't display the code keypad... Also the mqtt version isn't showing it :)
That version was a temp version that didn't support codes at all, so no information was leaked by not showing the keypad. The MQTT version needs to support different types of alarms, including some where the pin code is text rather than numbers, so is not really a comparison. I quickly glanced through the other alarm integrations (excluding the generic ones like mqtt, template, etc...), and couldn't find any other integration that allows the degree of control that the Risco integration does (4 different options), so there isn't really a good comparison. From a security perspective, though, this seems like the right thing to do, when the difference in usability is minimal.
Ok, no problem, if it bothers me, then I can still use the template alarm... I don't see those pending times anyway...
It was just strange to me, never saw the keypad before, always thought that the code_required functions should hide the keypad, if no codes were used... Cause I can now arm/disarm the alarm, without entering anything on the keypad
risco documentation risco source (message by IssueLinks)
@pergolafabio Initially you wanted pin code support. Why aren't you using it? :)
Anyway, this issue can be closed. Let's continue the discussion on Discord.
yeah, indeed i wanted it, but only for diarming ... to arm, there is no need to enter a pin :-)
Well, if you're using the pin to disarm, you definitely need the keypad in the UI then...
The problem
The lovelace alarm panel is showing a keypad when both options code arm required & code disarm required are false (not checked in config flow) , it should be hidden...
Environment
Traceback/Error logs
No Logs
Additional information
@OnFreund , i created an issue for this :-)
thnx for looking into it!