Fritzbox enable temp sensor (#52558)

This commit is contained in:
Michael 2021-07-22 18:19:39 +02:00 committed by GitHub
parent 258162d933
commit 24e07bc154
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
14 changed files with 205 additions and 63 deletions

View file

@ -5,6 +5,7 @@ from homeassistant.components.binary_sensor import (
DEVICE_CLASS_WINDOW,
BinarySensorEntity,
)
from homeassistant.components.sensor import ATTR_STATE_CLASS
from homeassistant.config_entries import ConfigEntry
from homeassistant.const import (
ATTR_DEVICE_CLASS,
@ -37,6 +38,7 @@ async def async_setup_entry(
ATTR_ENTITY_ID: f"{device.ain}",
ATTR_UNIT_OF_MEASUREMENT: None,
ATTR_DEVICE_CLASS: DEVICE_CLASS_WINDOW,
ATTR_STATE_CLASS: None,
},
coordinator,
ain,