From 08193169d0da03c81635ab05235cc9e94ec18abb Mon Sep 17 00:00:00 2001 From: Raman Gupta <7243222+raman325@users.noreply.github.com> Date: Wed, 18 Aug 2021 13:27:41 -0400 Subject: [PATCH] Remove unnecessary signal during zwave_js.reset_meter service call (#54837) --- homeassistant/components/zwave_js/sensor.py | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/homeassistant/components/zwave_js/sensor.py b/homeassistant/components/zwave_js/sensor.py index 220184f5669..1ffa263dae7 100644 --- a/homeassistant/components/zwave_js/sensor.py +++ b/homeassistant/components/zwave_js/sensor.py @@ -31,10 +31,7 @@ from homeassistant.const import ( ) from homeassistant.core import HomeAssistant, callback from homeassistant.helpers import entity_platform -from homeassistant.helpers.dispatcher import ( - async_dispatcher_connect, - async_dispatcher_send, -) +from homeassistant.helpers.dispatcher import async_dispatcher_connect from homeassistant.helpers.entity_platform import AddEntitiesCallback from .const import ATTR_METER_TYPE, ATTR_VALUE, DATA_CLIENT, DOMAIN, SERVICE_RESET_METER @@ -256,15 +253,6 @@ class ZWaveMeterSensor(ZWaveNumericSensor): options, ) - # Notify meters that may have been reset - async_dispatcher_send( - self.hass, - f"{DOMAIN}_{SERVICE_RESET_METER}", - node, - primary_value.endpoint, - options.get("type"), - ) - class ZWaveListSensor(ZwaveSensorBase): """Representation of a Z-Wave Numeric sensor with multiple states."""