GithubHelp home page GithubHelp logo

[BUG] about haier HOT 3 CLOSED

banto6 avatar banto6 commented on May 29, 2024
[BUG]

from haier.

Comments (3)

thfengxing avatar thfengxing commented on May 29, 2024

日志补充:

此错误来自自定义集成。

Logger: homeassistant.loader
Source: custom_components/haier/core/attribute.py:31
Integration: Haier (documentation, issues)
First occurred: 22:37:39 (1 occurrences)
Last logged: 22:37:39

Unexpected exception importing platform custom_components.haier.config_flow
Traceback (most recent call last):
File "/Users/homeserver/Documents/HomeAssistant/lib/python3.9/site-packages/homeassistant/loader.py", line 744, in get_platform
cache[full_name] = self._import_platform(platform_name)
File "/Users/homeserver/Documents/HomeAssistant/lib/python3.9/site-packages/homeassistant/loader.py", line 761, in _import_platform
return importlib.import_module(f"{self.pkg_path}.{platform_name}")
File "/Library/Developer/CommandLineTools/Library/Frameworks/Python3.framework/Versions/3.9/lib/python3.9/importlib/init.py", line 127, in import_module
return _bootstrap._gcd_import(name[level:], package, level)
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 972, in _find_and_load_unlocked
File "", line 228, in _call_with_frames_removed
File "", line 1030, in _gcd_import
File "", line 1007, in _find_and_load
File "", line 986, in _find_and_load_unlocked
File "", line 680, in _load_unlocked
File "", line 850, in exec_module
File "", line 228, in _call_with_frames_removed
File "/Users/homeserver/.homeassistant/custom_components/haier/init.py", line 12, in
from .coordinator import DeviceCoordinator
File "/Users/homeserver/.homeassistant/custom_components/haier/coordinator.py", line 8, in
from .core.device import HaierDevice
File "/Users/homeserver/.homeassistant/custom_components/haier/core/device.py", line 5, in
from .attribute import HaierAttribute, V1SpecAttributeParser
File "/Users/homeserver/.homeassistant/custom_components/haier/core/attribute.py", line 9, in
class HaierAttribute:
File "/Users/homeserver/.homeassistant/custom_components/haier/core/attribute.py", line 31, in HaierAttribute
def unit(self) -> str | None:
TypeError: unsupported operand type(s) for |: 'type' and 'NoneType'

from haier.

banto6 avatar banto6 commented on May 29, 2024

我本地没有复现,调整了一下代码,重新拉一下代码试试

from haier.

thfengxing avatar thfengxing commented on May 29, 2024

重新部署了python3.11和ha2023.7.2的core,已可以登陆

from haier.

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.