Skip to content

Commit

Permalink
airzone: sensor: disable webserver RSSI by default
Browse files Browse the repository at this point in the history
Signed-off-by: Álvaro Fernández Rojas <noltari@gmail.com>
  • Loading branch information
Noltari committed May 9, 2022
1 parent 27f706f commit c7a7d74
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions homeassistant/components/airzone/sensor.py
Expand Up @@ -37,6 +37,7 @@
SensorEntityDescription(
device_class=SensorDeviceClass.SIGNAL_STRENGTH,
entity_category=EntityCategory.DIAGNOSTIC,
entity_registry_enabled_default=False,
key=AZD_WIFI_RSSI,
name="RSSI",
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
Expand Down
4 changes: 4 additions & 0 deletions tests/components/airzone/test_sensor.py
@@ -1,5 +1,6 @@
"""The sensor tests for the Airzone platform."""

from homeassistant.components.airzone.sensor import WEBSERVER_SENSOR_TYPES
from homeassistant.core import HomeAssistant

from .util import async_init_integration
Expand All @@ -8,6 +9,9 @@
async def test_airzone_create_sensors(hass: HomeAssistant) -> None:
"""Test creation of sensors."""

for sensor in WEBSERVER_SENSOR_TYPES:
sensor.entity_registry_enabled_default = True

await async_init_integration(hass)

# WebServer
Expand Down

0 comments on commit c7a7d74

Please sign in to comment.