Deprecated warning fix for home assistant 2024.03

Fixes 
https://github.com/htmltiger/config-editor-card/issues/56
This commit is contained in:
htmltiger 2024-03-07 13:12:23 +00:00 committed by GitHub
parent b8b0f61329
commit 68d1f3d5ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -9,7 +9,7 @@ _LOGGER = logging.getLogger(__name__)
async def async_setup(hass, config):
hass.components.websocket_api.async_register_command(websocket_create)
websocket_api.async_register_command(hass, websocket_create)
hass.states.async_set(DOMAIN+".version", 4)
return True