Skip to content

Makes alarm_control_panels more flexible on Android auto#6374

Open
poupounetjoyeux wants to merge 7 commits intohome-assistant:mainfrom
poupounetjoyeux:main
Open

Makes alarm_control_panels more flexible on Android auto#6374
poupounetjoyeux wants to merge 7 commits intohome-assistant:mainfrom
poupounetjoyeux:main

Conversation

@poupounetjoyeux
Copy link
Copy Markdown

@poupounetjoyeux poupounetjoyeux commented Feb 2, 2026

Summary

If alarm has code but not required for arming allows arming alarm (arm_away)

Impact only Android Auto part of the application

Checklist

  • New or updated tests have been added to cover the changes following the testing guidelines.
  • The code follows the project's code style and best_practices.
  • The changes have been thoroughly tested, and edge cases have been considered.
  • Changes are backward compatible whenever feasible. Any breaking changes are documented in the changelog for users and/or in the code for developers depending on the relevance.

If alarm has code but not required for arming allows arming alarm
Keep the logic for disarming regarding the has code
Move the logic inside Entity.kt
Copy link
Copy Markdown

@home-assistant home-assistant Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @poupounetjoyeux

It seems you haven't yet signed a CLA. Please do so here.

Once you do that we will be able to review and accept this pull request.

Thanks!

@home-assistant home-assistant Bot marked this pull request as draft February 2, 2026 20:08
@home-assistant
Copy link
Copy Markdown

home-assistant Bot commented Feb 2, 2026

Please take a look at the requested changes, and use the Ready for review button when you are done, thanks 👍

Learn more about our pull request process.

@jpelgrom
Copy link
Copy Markdown
Member

jpelgrom commented Feb 2, 2026

Please sign the CLA to proceed.

At a quick glance your check in alarmCanBeArmedWithoutCode seems to be inverted.

@poupounetjoyeux
Copy link
Copy Markdown
Author

Hello @jpelgrom,
Thank you for the quick react,
To not disturb you until the PR is really ready (want to test a little bit the default code handling from my car) I will uses the ready for review button

@poupounetjoyeux poupounetjoyeux force-pushed the main branch 2 times, most recently from b739402 to 78a971f Compare February 5, 2026 14:11
Move methods to an util class to make them simpler to test
Fix reversed condition in alarmCanBeArmedWithoutCode()
@poupounetjoyeux poupounetjoyeux marked this pull request as ready for review February 5, 2026 14:14
@poupounetjoyeux
Copy link
Copy Markdown
Author

Hello!

The change is now ready and tested

Add some methods for more reliability
@jpelgrom
Copy link
Copy Markdown
Member

I'm going to mark this as draft, please click on 'Ready for review' once you've addressed the comments.

@jpelgrom jpelgrom marked this pull request as draft February 25, 2026 21:53
Add private functions visibility modifiier
Check alarm domain everywhere
Import assertions in unit tests
@poupounetjoyeux poupounetjoyeux marked this pull request as ready for review February 26, 2026 10:03
Copilot AI review requested due to automatic review settings February 26, 2026 10:03
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

@poupounetjoyeux
Copy link
Copy Markdown
Author

I'm going to mark this as draft, please click on 'Ready for review' once you've addressed the comments.

Yes sorry didn't have time last week, just done it

Thank for your time, I'm new to Kotlin so don't have all subtilities 😅

Make constant internal visible for tests only
Move the alarm control panel domain to IntegrationDomains
Fix log typo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants