Improve Bluetooth binary_sensor for Amazon Devices (#145600)

Improve blueetooth binary_sensor for Amazon Devices
This commit is contained in:
Simone Chemelli 2025-05-26 12:00:09 +03:00 committed by GitHub
parent 19ee8886d6
commit d975135a7c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 3 deletions

View File

@ -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,
), ),
) )

View File

@ -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>,