mirror of
https://github.com/home-assistant/core.git
synced 2025-07-15 17:27:10 +00:00
Disable entities for Motiontionblinds Bluetooth (#124159)
* Set entity_registry_enabled_default to False for RSSI sensor * Use entity description * Update homeassistant/components/motionblinds_ble/sensor.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Update homeassistant/components/motionblinds_ble/sensor.py Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com> * Use entity_registry_enabled_by_default fixture for tests --------- Co-authored-by: Joost Lekkerkerker <joostlek@outlook.com>
This commit is contained in:
parent
55cf3b60eb
commit
4e7e896601
@ -89,6 +89,7 @@ SENSORS: tuple[MotionblindsBLESensorEntityDescription, ...] = (
|
||||
native_unit_of_measurement=SIGNAL_STRENGTH_DECIBELS_MILLIWATT,
|
||||
register_callback_func=lambda device: device.register_signal_strength_callback,
|
||||
value_func=lambda value: value,
|
||||
entity_registry_enabled_default=False,
|
||||
),
|
||||
)
|
||||
|
||||
|
@ -24,6 +24,7 @@ from . import setup_integration
|
||||
from tests.common import MockConfigEntry
|
||||
|
||||
|
||||
@pytest.mark.usefixtures("entity_registry_enabled_by_default")
|
||||
@pytest.mark.parametrize("blind_type", [MotionBlindType.CURTAIN])
|
||||
@pytest.mark.parametrize(
|
||||
("sensor", "register_callback", "initial_value", "args", "expected_value"),
|
||||
|
Loading…
x
Reference in New Issue
Block a user