1
0
mirror of https://github.com/esphome/esphome.git synced 2025-09-28 16:12:24 +01:00

Register components properly

This commit is contained in:
Otto Winter
2019-05-24 16:20:28 +02:00
parent 999c1a5357
commit bd45f6bd8e
6 changed files with 14 additions and 12 deletions

View File

@@ -6,7 +6,8 @@ from .. import homeassistant_ns
DEPENDENCIES = ['api']
HomeassistantSensor = homeassistant_ns.class_('HomeassistantSensor', sensor.Sensor)
HomeassistantSensor = homeassistant_ns.class_('HomeassistantSensor', sensor.Sensor,
cg.Component)
CONFIG_SCHEMA = sensor.sensor_schema(UNIT_EMPTY, ICON_EMPTY, 1).extend({
cv.GenerateID(): cv.declare_id(HomeassistantSensor),