Replies: 1 comment 4 replies
-
Which version of home assistant are you running? I think you're using a version which doesn't have the expected import. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi all,
I am trying to add Bhyve to my HA and I get this error:
Logger: homeassistant.components.websocket_api.http.connection
Source: components/homeassistant/init.py:161
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 3:55:55 PM (1 occurrences)
Last logged: 3:55:55 PM
[2934737432] The system cannot restart because the configuration is not valid: Platform error sensor.bhyve - cannot import name 'ENTITY_CATEGORY_DIAGNOSTIC' from 'homeassistant.const' (/srv/homeassistant/lib/python3.8/site-packages/homeassistant/const.py) Platform error switch.bhyve - cannot import name 'ENTITY_CATEGORY_CONFIG' from 'homeassistant.const' (/srv/homeassistant/lib/python3.8/site-packages/homeassistant/const.py)
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/websocket_api/commands.py", line 185, in handle_call_service
await hass.services.async_call(
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py", line 1491, in async_call
task.result()
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/core.py", line 1526, in _execute_service
await handler.job.target(service_call)
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/helpers/service.py", line 728, in admin_handler
await result
File "/srv/homeassistant/lib/python3.8/site-packages/homeassistant/components/homeassistant/init.py", line 161, in async_handle_core_service
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: The system cannot restart because the configuration is not valid: Platform error sensor.bhyve - cannot import name 'ENTITY_CATEGORY_DIAGNOSTIC' from 'homeassistant.const' (/srv/homeassistant/lib/python3.8/site-packages/homeassistant/const.py)
Platform error switch.bhyve - cannot import name 'ENTITY_CATEGORY_CONFIG' from 'homeassistant.const' (/srv/homeassistant/lib/python3.8/site-packages/homeassistant/const.py)
This is my config file:
default_config:
bhyve:
username: !secret bhyve_user
password: !secret bhyve_pass
switch:
sensor:
binary_sensor:
I installed it via HACS and the added the configs as per instuctions and I am not sure what I have done wrong.
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions