Code Monkey home page Code Monkey logo

ha-dahuavto's People

Contributors

elad-bar avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

hwikene gburny

ha-dahuavto's Issues

core log: many entries in the core log

hi,
I installed your Dahua VTO integration. Now I get loads of entries from the module:

Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/aiohttp/web_protocol.py", line 314, in data_received
messages, upgraded, tail = self._request_parser.feed_data(data)
File "aiohttp/_http_parser.pyx", line 546, in aiohttp.http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'invalid HTTP method'"
2020-12-08 17:17:23 WARNING (MainThread) [homeassistant.util.async
] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self.auth)
2020-12-08 17:17:23 WARNING (MainThread) [homeassistant.util.async
] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self.auth)
2020-12-08 17:17:28 WARNING (MainThread) [homeassistant.util.async
] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self.auth)
2020-12-08 17:17:28 WARNING (MainThread) [homeassistant.util.async
] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth)

Can you help me?

greetings
Kay

incorrect link in README

File: https://github.com/elad-bar/ha-dahuavto/blob/master/README.md

At the moment:

this integration is depreacted as the call event didn't work fluently,
instead you can use the <a href="https://github.com/elad-bar/Dahua">DahuaVTO2MQTT</a> to get all events.

Expected:

this integration is depreacted as the call event didn't work fluently,
instead you can use the <a href="https://github.com/elad-bar/DahuaVTO2MQTT">DahuaVTO2MQTT</a> to get all events.

Issue in HA logs : doing I/O at custom_components/dahuavto/dahuavto_data.py

Hello

My HA logs have returned the following message and ask to report it as issue :

2020-09-13 09:19:27 WARNING (MainThread) [homeassistant.util.async_] Detected I/O inside the event loop. This is causing stability issues. Please report issue to the custom component author for dahuavto doing I/O at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth)

Do you know if I have to do something to stop these logs to pop ?

Thanks for your help

Regards

Ben

Integration is using deprecated `DEVICE_CLASS_*` constants

This custom integration uses deprecated DEVICE_CLASS_* constants in its codebase.

The DEVICE_CLASS_* constants have been deprecated and replaced in Home Assistant Core 2021.12 (over a year ago). I would highly suggest updating/migrating this integration to the new enums.

For example, for the device classes supported by the sensor platform, there is now a SensorDeviceClass enum. So if a sensor previously used the DEVICE_CLASS_ENERGY constant, it should now use SensorDeviceClass.ENERGY. Other platforms (like binary_sensor, and number) provide similar enumerations for their supported device classes.

The migration thus only consists of replacing constants with an enumeration member and is, therefore, very low impact and should be fairly straightforward.

If I can help resolve any questions regarding this change or migration, feel free to ask or respond to this issue. I'm happy to help!

Kindest regards,

../Frenck

ERROR

error
I have no idea what to do next... :((((


Detalles de registro (ERROR)

Logger: custom_components.dahuavto.dahuavto_data
Source: custom_components/dahuavto/dahuavto_data.py:112
Integration: Dahua VTO Integration (documentation)
First occurred: 3 de mayo de 2021 21:05:11 (10264 occurrences)
Last logged: 11:20:51

VTO Request to /cgi-bin/magicBox.cgi?action=getSystemInfo failed, Error: I/O must be done in the executor; Use `await hass.async_add_executor_job()` at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth), Line: 98
VTO Request to /cgi-bin/recordFinder.cgi?action=find&name=VideoTalkLog failed, Error: I/O must be done in the executor; Use `await hass.async_add_executor_job()` at custom_components/dahuavto/dahuavto_data.py, line 98: response = requests.get(url, timeout=5, auth=self._auth), Line: 98

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.