Remove unnecessary signal during zwave_js.reset_meter service call (#54837)

This commit is contained in:
Raman Gupta 2021-08-18 13:27:41 -04:00 committed by GitHub
parent e7a0604a40
commit 08193169d0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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."""