Skip to content

Commit

Permalink
setup
Browse files Browse the repository at this point in the history
  • Loading branch information
kcsoft committed Feb 1, 2025
1 parent 74bf4e5 commit 6762563
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions custom_components/virtual_keys/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@

async def async_setup(hass: HomeAssistant, config) -> bool:
try:
websocket_api.async_register_command(hass, list_users)
websocket_api.async_register_command(hass, create_token)
websocket_api.async_register_command(hass, delete_token)

name = DOMAIN.replace("_", "-")
source_dir = os.path.join(hass.config.path(), "custom_components", DOMAIN, "dist")
dest_dir = os.path.join(hass.config.path(), "www", "community", name)
Expand Down Expand Up @@ -158,11 +162,3 @@ async def delete_token(
return

connection.send_result(msg["id"], False)


async def async_setup(hass: HomeAssistant, config: ConfigType) -> bool:
websocket_api.async_register_command(hass, list_users)
websocket_api.async_register_command(hass, create_token)
websocket_api.async_register_command(hass, delete_token)

return True

0 comments on commit 6762563

Please sign in to comment.