Code Monkey home page Code Monkey logo

Comments (9)

amaximus avatar amaximus commented on August 24, 2024 1

Recently pushed version (0.4.5) adds timeout to http requests.

Please update the integration, check it on your side too and get back to me with results.

from fkf-garbage-collection.

amaximus avatar amaximus commented on August 24, 2024

0.4.1 fixes the reported issue.

Please update the integration, test on your side too and get back to me with results.

from fkf-garbage-collection.

nagyrobi avatar nagyrobi commented on August 24, 2024

Updated to 0.4.2, behavior still runs in error:

2021-11-13 08:13:05 ERROR (MainThread) [homeassistant.components.sensor] fkf_garbage_collection: Error on device update!
Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 431, in _async_add_entity
    await entity.async_device_update(warning=False)
  File "/usr/src/homeassistant/homeassistant/helpers/entity.py", line 651, in async_device_update
    await task
  File "/config/custom_components/fkf_garbage_collection/sensor.py", line 362, in async_update
    fkfdata = await async_get_fkfdata(self)
  File "/config/custom_components/fkf_garbage_collection/sensor.py", line 185, in async_get_fkfdata
    async with self._session.get(url) as response:
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 1117, in __aenter__
    self._resp = await self._coro
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client.py", line 544, in _request
    await resp.start(conn)
  File "/usr/local/lib/python3.9/site-packages/aiohttp/client_reqrep.py", line 890, in start
    message, payload = await self._protocol.read()  # type: ignore
  File "/usr/local/lib/python3.9/site-packages/aiohttp/streams.py", line 604, in read
    await self._waiter
aiohttp.client_exceptions.ServerDisconnectedError: Server disconnected

from fkf-garbage-collection.

amaximus avatar amaximus commented on August 24, 2024

Just pushed a release addressing the Server Disconnected exception when getting the cookie.

Please update the integration and get back to me with results.

from fkf-garbage-collection.

nagyrobi avatar nagyrobi commented on August 24, 2024

No more error in the log (+data reloads when site becomes available), but attributes data is incorrect:

next_communal_days: null
next_green_days: 1
next_selective_days: null
calendar_lang: en
provider: Data provided by fkf.hu
friendly_name: FKF hulladék
icon: mdi:trash-can-outline

Most important is missing the current attribute, which should be present and set to false in cases like this.
Additionally it would be nice to show cached data from the last successfull parsing...

from fkf-garbage-collection.

amaximus avatar amaximus commented on August 24, 2024

Just pushed 0.4.4 that will set the current attribute to false and old/outdted data will populate the attributes (instead of null).

Please update the integration and get back to me with results.

from fkf-garbage-collection.

nagyrobi avatar nagyrobi commented on August 24, 2024

HA does not start:

2021-12-06 19:12:50 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sensor.fkf_garbage_collection
2021-12-06 19:13:51 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sensor.fkf_garbage_collection
2021-12-06 19:14:51 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sensor.fkf_garbage_collection
2021-12-06 19:15:51 WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: sensor.fkf_garbage_collection

from fkf-garbage-collection.

amaximus avatar amaximus commented on August 24, 2024

Any update on this issue?

from fkf-garbage-collection.

nagyrobi avatar nagyrobi commented on August 24, 2024

Looks good now.

from fkf-garbage-collection.

Related Issues (19)

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.