Remove str from sensor device class (#83391)

This commit is contained in:
Franck Nijhof 2022-12-08 19:04:58 +01:00 committed by GitHub
parent 3ba264c318
commit 9864d9e0d2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 22 additions and 15 deletions

View file

@ -158,7 +158,7 @@ class DemoSensor(SensorEntity):
unique_id: str,
name: str,
state: StateType,
device_class: SensorDeviceClass | str,
device_class: SensorDeviceClass,
state_class: SensorStateClass | None,
unit_of_measurement: str | None,
battery: StateType,