support BleBox sensor (#35374)
This commit is contained in:
1 parent
4099815a08
commit
53771bd576
4 files changed
+126
-1
No files matched your search
@@ -9,6 +9,7 @@ from homeassistant.components.cover import (
|
||||
STATE_OPEN,
|
||||
STATE_OPENING,
|
||||
)
|
||||
from homeassistant.const import DEVICE_CLASS_TEMPERATURE, TEMP_CELSIUS
|
||||
|
||||
DOMAIN = "blebox"
|
||||
PRODUCT = "product"
|
||||
@@ -41,5 +42,8 @@ BLEBOX_TO_HASS_COVER_STATES = {
|
||||
8: STATE_OPEN, # safety stop
|
||||
}
|
||||
|
||||
BLEBOX_TO_UNIT_MAP = {"celsius": TEMP_CELSIUS}
|
||||
BLEBOX_DEV_CLASS_MAP = {"temperature": DEVICE_CLASS_TEMPERATURE}
|
||||
|
||||
DEFAULT_HOST = "192.168.0.2"
|
||||
DEFAULT_PORT = 80
|
||||
Reference in new issue
Block a user