GithubHelp home page GithubHelp logo

hassdiagnostics's Issues

Fix 'LogRecord' object has no attribute 'message'

Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/device.py", line 150, in _try_command
    result = await self.hass.async_add_executor_job(
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/miio/click_common.py", line 184, in _wrap
    return func(self, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/miio/integrations/airpurifier/zhimi/airpurifier.py", line 403, in off
    return self.send("set_power", ["off"])
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/miio/device.py", line 107, in send
    return self._protocol.send(
           ^^^^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 161, in send
    self.send_handshake()
  File "/usr/local/lib/python3.12/site-packages/miio/miioprotocol.py", line 74, in send_handshake
    raise DeviceException("Unable to discover the device %s" % self.ip)
miio.exceptions.DeviceException: Unable to discover the device 192.168.10.20

During handling of the above exception, another exception occurred:


Traceback (most recent call last):
  File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 239, in handle_call_service
    response = await hass.services.async_call(
               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/homeassistant/init.py", line 144, in async_handle_turn_service
    await asyncio.gather(*tasks)
  File "/usr/src/homeassistant/homeassistant/core.py", line 2543, in async_call
    response_data = await coro
                    ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/core.py", line 2580, in _execute_service
    return await target(service_call)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 971, in entity_service_call
    single_response = await _handle_entity_call(
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/helpers/service.py", line 1043, in _handle_entity_call
    result = await task
             ^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/fan.py", line 357, in async_turn_off
    result = await self._try_command(
             ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/src/homeassistant/homeassistant/components/xiaomi_miio/device.py", line 159, in _try_command
    _LOGGER.error(mask_error, exc)
  File "/usr/local/lib/python3.12/logging/init.py", line 1568, in error
    self._log(ERROR, msg, args, **kwargs)
  File "/usr/local/lib/python3.12/logging/init.py", line 1684, in _log
    self.handle(record)
  File "/usr/local/lib/python3.12/logging/init.py", line 1700, in handle
    self.callHandlers(record)
  File "/usr/local/lib/python3.12/logging/init.py", line 1762, in callHandlers
    hdlr.handle(record)
  File "/usr/local/lib/python3.12/logging/init.py", line 1028, in handle
    self.emit(record)
  File "/config/custom_components/hass_diagnostics/sensor.py", line 56, in emit
    entry = parse_log_record(record)
            ^^^^^^^^^^^^^^^^^^^^^^^^
  File "/config/custom_components/hass_diagnostics/core/smart_log.py", line 28, in parse_log_record
    message = short = record.message or record.getMessage()
                      ^^^^^^^^^^^^^^
AttributeError: 'LogRecord' object has no attribute 'message'

Hass Diagnostic leads to errors in YaHa cloud notifier in 2024.5

Hass Diagnostic leads to errors in YaHa cloud notifier in 2024.5
dext0r/yandex_smart_home#530

Эта ошибка возникла в пользовательской интеграции.

Регистратор: homeassistant
Источник: custom_components/yandex_smart_home/notifier.py:288
интеграция: Yandex Smart Home (документация, проблемы)
Первое сообщение: 23:28:02 (192 сообщений)
Последнее сообщение: 23:32:24

Error doing job: Task exception was never retrieved
Traceback (most recent call last):
 File "/config/custom_components/yandex_smart_home/notifier.py", line 288, in _state_change_listener
   await asyncio.gather(*[n.async_event_handler(event) for n in hass.data[DOMAIN][NOTIFIERS]])
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.12/asyncio/tasks.py", line 831, in gather
   fut = ensure_future(arg, loop=loop)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.12/asyncio/tasks.py", line 693, in ensure_future
   loop = events.get_event_loop()
          ^^^^^^^^^^^^^^^^^^^^^^^
 File "/usr/local/lib/python3.12/asyncio/events.py", line 702, in get_event_loop
   raise RuntimeError('There is no current event loop in thread %r.'
RuntimeError: There is no current event loop in thread 'ImportExecutor_0'.

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.