Coder Social home page Coder Social logo

No attribute error about pyhik HOT 5 CLOSED

mezz64 avatar mezz64 commented on June 24, 2024
No attribute error

from pyhik.

Comments (5)

mezz64 avatar mezz64 commented on June 24, 2024

Do you know what version you were on before? There haven't been any changes recently. I'll be unavailable for the next week or so, but I'll take a closer look when I get back.

from pyhik.

Tim-GitHub avatar Tim-GitHub commented on June 24, 2024

I spun up a VM of a backup of my old server and verified that pyHik is working without issue on it. My old server was/is running Home Assistant 0.39.3. My Raspberry Pi 3 is running Home Assistant 0.47.1.

from pyhik.

Tim-GitHub avatar Tim-GitHub commented on June 24, 2024

I updated the VM of my old server from 0.39.3 to current 0.47.1. Looks like pyHik stopped working, and gives the exact same errors:

[pyhik.hikvision] There was a problem finding an element: 'NoneType' object has no attribute 'text'
[pyhik.hikvision] No Events available in dictionary.

Based on that, it appears the issue is due to incompatibility of pyHik and updated code for Home Assistant.

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

Hass 39.3 was a while ago, back on pyHik 0.0.7, before NVR support was added. There were a lot of changes to the event parsing code to accommodate that addition.

I'll try to run your xml through that section locally with some more debugging and see if I can locate the issue.

from pyhik.

mezz64 avatar mezz64 commented on June 24, 2024

This should now be fixed in version 0.1.3 of pyHik. You can either edit your local files manually to point to the new version or wait until it gets merged into HASS. The PR to update the dev branch is currently pending.

from pyhik.

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.