Add number entities to ESPHome (#52241)

Co-authored-by: Franck Nijhof <git@frenck.dev>
This commit is contained in:
Jesse Hills 2021-06-30 00:33:04 +12:00 committed by GitHub
parent a639cb7ba7
commit e1797ea670
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 91 additions and 3 deletions

View file

@ -16,6 +16,7 @@ from aioesphomeapi import (
EntityState,
FanInfo,
LightInfo,
NumberInfo,
SensorInfo,
SwitchInfo,
TextSensorInfo,
@ -41,6 +42,7 @@ INFO_TYPE_TO_PLATFORM = {
CoverInfo: "cover",
FanInfo: "fan",
LightInfo: "light",
NumberInfo: "number",
SensorInfo: "sensor",
SwitchInfo: "switch",
TextSensorInfo: "sensor",