GithubHelp home page GithubHelp logo

Comments (1)

georgezhao2010 avatar georgezhao2010 commented on May 23, 2024

This exception always gets thrown during graceful HA shutdown; if you could catch it so it doesn't fire off people's alerting around exceptions that would be lovely!

RuntimeError: Event loop is closed
  File "/config/custom_components/midea_ac_lan/state_manager.py", line 71, in run
    self.enable_devices(False)
  File "/config/custom_components/midea_ac_lan/state_manager.py", line 132, in enable_devices
    self.update_all({"available": enable})
  File "/config/custom_components/midea_ac_lan/state_manager.py", line 138, in update_all
    update(updates)
  File "/config/custom_components/midea_ac_lan/midea_entity.py", line 136, in update_state
    self.schedule_update_ha_state()
  File "homeassistant/helpers/entity.py", line 660, in schedule_update_ha_state
    self.hass.add_job(self.async_update_ha_state(force_refresh))
  File "homeassistant/core.py", line 365, in add_job
    self.loop.call_soon_threadsafe(self.async_add_job, target, *args)
  File "asyncio/base_events.py", line 795, in call_soon_threadsafe
    self._check_closed()
  File "asyncio/base_events.py", line 515, in _check_closed
    raise RuntimeError('Event loop is closed')

I'd also be happy to take a stab at fixing it if it's not a high priority for you!

I'll fix it, and thank you.

from midea_ac_lan.

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.