Change TCP component to use Jinja2 instead of regex
This commit is contained in:
parent
cf93644d54
commit
348b7abe7d
3 changed files with 26 additions and 18 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue