mirror of
https://github.com/home-assistant/core.git
synced 2025-07-20 19:57:07 +00:00
Remove unnecessary signal during zwave_js.reset_meter service call (#54837)
This commit is contained in:
parent
e7a0604a40
commit
08193169d0
@ -31,10 +31,7 @@ from homeassistant.const import (
|
|||||||
)
|
)
|
||||||
from homeassistant.core import HomeAssistant, callback
|
from homeassistant.core import HomeAssistant, callback
|
||||||
from homeassistant.helpers import entity_platform
|
from homeassistant.helpers import entity_platform
|
||||||
from homeassistant.helpers.dispatcher import (
|
from homeassistant.helpers.dispatcher import async_dispatcher_connect
|
||||||
async_dispatcher_connect,
|
|
||||||
async_dispatcher_send,
|
|
||||||
)
|
|
||||||
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
from homeassistant.helpers.entity_platform import AddEntitiesCallback
|
||||||
|
|
||||||
from .const import ATTR_METER_TYPE, ATTR_VALUE, DATA_CLIENT, DOMAIN, SERVICE_RESET_METER
|
from .const import ATTR_METER_TYPE, ATTR_VALUE, DATA_CLIENT, DOMAIN, SERVICE_RESET_METER
|
||||||
@ -256,15 +253,6 @@ class ZWaveMeterSensor(ZWaveNumericSensor):
|
|||||||
options,
|
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):
|
class ZWaveListSensor(ZwaveSensorBase):
|
||||||
"""Representation of a Z-Wave Numeric sensor with multiple states."""
|
"""Representation of a Z-Wave Numeric sensor with multiple states."""
|
||||||
|
Loading…
x
Reference in New Issue
Block a user