Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: Python traceback on RPi #10

Open
vlachoudis opened this issue Sep 8, 2023 · 0 comments
Open

Bug: Python traceback on RPi #10

vlachoudis opened this issue Sep 8, 2023 · 0 comments

Comments

@vlachoudis
Copy link

I am trying to setup the airsend on home assistant
and during loading I've got the following traceback

Traceback (most recent call last):
  File "/home/bnv/hass/lib/python3.9/site-packages/homeassistant/loader.py", line 744, in get_platform
    cache[full_name] = self._import_platform(platform_name)
  File "/home/bnv/hass/lib/python3.9/site-packages/homeassistant/loader.py", line 761, in _import_platform
    return importlib.import_module(f"{self.pkg_path}.{platform_name}")
  File "/usr/lib/python3.9/importlib/__init__.py", line 127, in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
  File "<frozen importlib._bootstrap>", line 1030, in _gcd_import
  File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
  File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
  File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
  File "<frozen importlib._bootstrap_external>", line 790, in exec_module
  File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
  File "/home/bnv/.homeassistant/custom_components/airsend/sensor.py", line 81, in <module>
    class AirSendStateSensor(BinarySensorEntity):
  File "/home/bnv/.homeassistant/custom_components/airsend/sensor.py", line 117, in AirSendStateSensor
    def device_class(self) -> BinarySensorDeviceClass | None:
TypeError: unsupported operand type(s) for |: 'EnumMeta' and 'NoneType'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant