Add setup, loop as reserved IDs

Fixes https://github.com/esphome/issues/issues/496
This commit is contained in:
Otto Winter 2019-07-03 15:25:38 +02:00
parent 13522c8f19
commit 7ad593d674
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -61,7 +61,7 @@ RESERVED_IDS = [
'App', 'pinMode', 'delay', 'delayMicroseconds', 'digitalRead', 'digitalWrite', 'INPUT',
'OUTPUT',
'uint8_t', 'uint16_t', 'uint32_t', 'uint64_t', 'int8_t', 'int16_t', 'int32_t', 'int64_t',
'close', 'pause', 'sleep', 'open',
'close', 'pause', 'sleep', 'open', 'setup', 'loop',
]