mirror of
https://github.com/home-assistant/core.git
synced 2025-07-18 18:57:06 +00:00
Improve Bluetooth binary_sensor for Amazon Devices (#145600)
Improve blueetooth binary_sensor for Amazon Devices
This commit is contained in:
parent
19ee8886d6
commit
d975135a7c
@ -39,7 +39,6 @@ BINARY_SENSORS: Final = (
|
|||||||
AmazonBinarySensorEntityDescription(
|
AmazonBinarySensorEntityDescription(
|
||||||
key="bluetooth",
|
key="bluetooth",
|
||||||
translation_key="bluetooth",
|
translation_key="bluetooth",
|
||||||
device_class=BinarySensorDeviceClass.CONNECTIVITY,
|
|
||||||
is_on_fn=lambda _device: _device.bluetooth_state,
|
is_on_fn=lambda _device: _device.bluetooth_state,
|
||||||
),
|
),
|
||||||
)
|
)
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
'name': None,
|
'name': None,
|
||||||
'options': dict({
|
'options': dict({
|
||||||
}),
|
}),
|
||||||
'original_device_class': <BinarySensorDeviceClass.CONNECTIVITY: 'connectivity'>,
|
'original_device_class': None,
|
||||||
'original_icon': None,
|
'original_icon': None,
|
||||||
'original_name': 'Bluetooth',
|
'original_name': 'Bluetooth',
|
||||||
'platform': 'amazon_devices',
|
'platform': 'amazon_devices',
|
||||||
@ -36,7 +36,6 @@
|
|||||||
# name: test_all_entities[binary_sensor.echo_test_bluetooth-state]
|
# name: test_all_entities[binary_sensor.echo_test_bluetooth-state]
|
||||||
StateSnapshot({
|
StateSnapshot({
|
||||||
'attributes': ReadOnlyDict({
|
'attributes': ReadOnlyDict({
|
||||||
'device_class': 'connectivity',
|
|
||||||
'friendly_name': 'Echo Test Bluetooth',
|
'friendly_name': 'Echo Test Bluetooth',
|
||||||
}),
|
}),
|
||||||
'context': <ANY>,
|
'context': <ANY>,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user