Clean up zwave_js logging and hass.data (#73856)

This commit is contained in:
Martin Hjelmare 2022-06-22 21:35:26 +02:00 committed by GitHub
parent 1ead6d6762
commit 0e674fc597
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
8 changed files with 10 additions and 42 deletions

View file

@ -1,8 +1,6 @@
"""Generic Z-Wave Entity Class."""
from __future__ import annotations
import logging
from zwave_js_server.const import NodeStatus
from zwave_js_server.model.driver import Driver
from zwave_js_server.model.value import Value as ZwaveValue, get_value_id
@ -12,12 +10,10 @@ from homeassistant.core import callback
from homeassistant.helpers.dispatcher import async_dispatcher_connect
from homeassistant.helpers.entity import DeviceInfo, Entity
from .const import DOMAIN
from .const import DOMAIN, LOGGER
from .discovery import ZwaveDiscoveryInfo
from .helpers import get_device_id, get_unique_id
LOGGER = logging.getLogger(__name__)
EVENT_VALUE_UPDATED = "value updated"
EVENT_VALUE_REMOVED = "value removed"
EVENT_DEAD = "dead"