mirror of
https://github.com/home-assistant/core.git
synced 2025-08-05 13:45:12 +02:00
Remove unnecessary assignment of Template.hass from snmp (#123689)
This commit is contained in:
@@ -174,8 +174,6 @@ async def async_setup_platform(
|
||||
trigger_entity_config[key] = config[key]
|
||||
|
||||
value_template: Template | None = config.get(CONF_VALUE_TEMPLATE)
|
||||
if value_template is not None:
|
||||
value_template.hass = hass
|
||||
|
||||
data = SnmpData(request_args, baseoid, accept_errors, default_value)
|
||||
async_add_entities([SnmpSensor(hass, data, trigger_entity_config, value_template)])
|
||||
|
Reference in New Issue
Block a user