Change TCP component to use Jinja2 instead of regex
This commit is contained in:
1 parent
cf93644d54
commit
348b7abe7d
3 files changed
+26
-18
No files matched your search
@@ -19,7 +19,7 @@ def setup_platform(hass, config, add_entities, discovery_info=None):
|
||||
""" Create the BinarySensor. """
|
||||
if not BinarySensor.validate_config(config):
|
||||
return False
|
||||
add_entities((BinarySensor(config),))
|
||||
add_entities((BinarySensor(hass, config),))
|
||||
|
||||
|
||||
class BinarySensor(Sensor, BinarySensorDevice):
|
||||
|
||||
Reference in new issue
Block a user