mirror of
https://github.com/home-assistant/core.git
synced 2025-07-23 05:07:41 +00:00
Remove unnecessary assignment of Template.hass from snmp (#123689)
This commit is contained in:
parent
81788790df
commit
4dadf0ea1b
@ -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)])
|
||||
|
Loading…
x
Reference in New Issue
Block a user