-
Notifications
You must be signed in to change notification settings - Fork 29
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
’<’ not supported between instances of ‘str’ and 'int’ when editing settings #34
Comments
Did you install the integration when on HA 0.96.3 or on previous version of HA that was updated later? |
With HA 0.96.3, it's a fresh install |
Hi, I also get the same error message as @skynet01 , but I have a slightly different HA setup. I cannot save any settings through the Alarm UI either. I did initially try to setup bwalarm settings in the bwalarm.yaml, but then erased and tried to save settings in the UI. This is a first-time install of bwalarm. I have tried uninstalling and re-installing through HACS again but the issue remains. Your components (from Alarm/Settings/About): Platform & Browser: Describe the bug
when saving any setting in the settings I get this:
To Reproduce Click on any button in alarm panel, or change any setting. Expected behavior Screenshots Additional context
|
Update: I installed bwalarm on another HA instance and it worked. The only difference I can think of is in the bwalarm.yaml file. I previously had this entry (with the '-') in the yaml file:
Changing to this fixed the issue:
Now that I see a working config, I can see why the dash was causing problems. The Alarm UI edits the bwalarm.yaml file and adds configuration entries. If you have another alarm besides bwalarm listed in the .yaml file, then you will run into the issue. |
@dnguyen800 so in your case it's another platform in bwalarm.yaml that created the issue, right?
it's not the original bwalarm.yaml, is it? it won't work with dash as it's not a list. |
Correct, it was my fault as I wanted to include another MQTT alarm platform in bwalarm.yaml. By adding the '-', it messed up the YAML formatting when the UI alarm settings are changed. |
@skynet01 could you post content of your bwalarm.yaml and HA log when you see that error here? |
Yes, I can confirm that removing the "-" from the config fixes the issue. No more errors in the setting and everything seems to be working. Would be nice to have this fixed since I have other devices that have built-in alarm panels like Arlo that I can't use |
@skynet01 do you know how to fix it? |
Maybe the config for the app should be in a separate file since it’s managed by the ui anyway. That way we can just have our alarm.yaml file in the main config folder with just single line platform declaration. |
Got it. Need to think about it as it's a bit complicated stuff |
Can't you just have the component load with "platform: bwalarm" in alarm.yaml file and then just keep all of the config parameters in a separate settings file? Or its not that simple |
Your components (from Alarm/Settings/About):
Platform & Browser:
Describe the bug
When going to settings of the panel I get the following errors
Failed to call service alarm_control_panel/alarm_yaml_user. list indices must be integers or slices, not str
when saving any setting in the settings I get this
’<’ not supported between instances of ‘str’ and 'int’
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Saving settings
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Installed using HACS
copied resources folder to /config
inside: /config/resources/bwalarm/bwalarm.yaml
in the main confing
alarm_control_panel: !include resources/bwalarm/bwalarm.yaml
The text was updated successfully, but these errors were encountered: