mirror of
https://github.com/Threnklyn/esphome-dev.git
synced 2026-06-01 18:48:28 +02:00
Add ESP32 Camera (#475)
* Add ESP32 Camera * Fixes * Updates * Fix substitutions not working for non-ASCII * Update docker base image to 1.3.0
This commit is contained in:
@@ -6,6 +6,7 @@ import voluptuous as vol
|
||||
from esphome import core
|
||||
import esphome.config_validation as cv
|
||||
from esphome.core import EsphomeError
|
||||
from esphome.py_compat import string_types
|
||||
|
||||
_LOGGER = logging.getLogger(__name__)
|
||||
|
||||
@@ -93,7 +94,7 @@ def _substitute_item(substitutions, item, path):
|
||||
for old, new in replace_keys:
|
||||
item[new] = item[old]
|
||||
del item[old]
|
||||
elif isinstance(item, str):
|
||||
elif isinstance(item, string_types):
|
||||
sub = _expand_substitutions(substitutions, item, path)
|
||||
if sub != item:
|
||||
return sub
|
||||
|
||||
Reference in New Issue
Block a user