Fix SHT3xD with manual update interval

This commit is contained in:
Otto Winter 2018-06-06 09:06:14 +02:00
parent 0c77228421
commit 081c2f4e07
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 1 additions and 0 deletions

View File

@ -29,6 +29,7 @@ PLATFORM_SCHEMA = sensor.PLATFORM_SCHEMA.extend({
def to_code(config):
rhs = App.make_sht3xd_sensor(config[CONF_TEMPERATURE][CONF_NAME],
config[CONF_HUMIDITY][CONF_NAME],
config[CONF_ADDRESS],
config.get(CONF_UPDATE_INTERVAL))
sht3xd = variable(config[CONF_MAKE_ID], rhs)