Giter VIP home page Giter VIP logo

Comments (13)

elahd avatar elahd commented on July 19, 2024 4

from alarmdotcom.

thomasshawn avatar thomasshawn commented on July 19, 2024 2

I updated the py file and then restarted HA and it worked right away

the only line I needed to add was

_attr_code_arm_required = False

for me to match spacing of the example
it was on line 71

from alarmdotcom.

TheWebMachine avatar TheWebMachine commented on July 19, 2024

I can confirm this is an issue for me, as well. Suddenly all of my security routines began erroring out and it took me all day to figure out why they weren't working.

Going to try the fix mentioned for now.

from alarmdotcom.

rmatte avatar rmatte commented on July 19, 2024

Seeing the same here. Can't manually arm from the dashboard now either, but can disarm from the dashboard fine. Seems to be related to home-assistant/core#118668 as bumpaneer mentioned.

from alarmdotcom.

adamantivm avatar adamantivm commented on July 19, 2024

I'm on the same boat, thanks for reporting it @bumpaneer

a couple of silly questions to be able to leverage your workaround:

  • Once you changed the file to add the code, how did you make HA take the update? Was reloading the integration sufficient? Or what else do you need to do so that HA actually takes the change?
  • Which specific file did you change? was it the file under config/custom_components/alarmdotcom or somewhere else?

from alarmdotcom.

adamantivm avatar adamantivm commented on July 19, 2024

I updated the py file and then restarted HA and it worked right away

the only line I needed to add was

_attr_code_arm_required = False

for me to match spacing of the example it was on line 71

Thanks! Working for me too now. I didn't know it was required to start all of HA to reload integration, TIL.

from alarmdotcom.

rmatte avatar rmatte commented on July 19, 2024

Is adding _attr_code_arm_required = False the ideal fix for this? If so we should get a PR submitted with that change.

from alarmdotcom.

adamyoung3 avatar adamyoung3 commented on July 19, 2024

I'm having the same issue. getting this fix published would be appreciated

from alarmdotcom.

lbreggi avatar lbreggi commented on July 19, 2024

This is a new requirement introduced by the update 2024.6. Thank you very much @thomasshawn! You just need to add the line where he mention and reboot HA and everything is working as before again!

from alarmdotcom.

rmatte avatar rmatte commented on July 19, 2024

PR submitted for this, the package maintainer will need to approve it and cut the new release: #413

from alarmdotcom.

bkr1969 avatar bkr1969 commented on July 19, 2024

Which py file do we need to add the code part? I haven't found a relevant line 71 spot so far in any of them.

from alarmdotcom.

thomasshawn avatar thomasshawn commented on July 19, 2024

from alarmdotcom.

rmatte avatar rmatte commented on July 19, 2024

Which py file do we need to add the code part? I haven't found a relevant line 71 spot so far in any of them.

You need to edit alarm_control_panel.py and find line number 65 which should be...

class AlarmControlPanel(HardwareBaseDevice, AlarmControlPanelEntity):  # type: ignore

Then find this line under that...

    _device: libPartition

Then add this after it...

    _attr_code_arm_required = False

So that the whole thing looks like...

class AlarmControlPanel(HardwareBaseDevice, AlarmControlPanelEntity):  # type: ignore
   """Alarm.com Alarm Control Panel entity."""

   device_type_name: str = "Alarm Control Panel"
   _device: libPartition

   _attr_code_arm_required = False

If you installed it via HACS the files for the package will be in your home assistant config directory in a directory called custom_components/alarmdotcom. Once that edit is made, restart home assistant.

from alarmdotcom.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.