1
0
mirror of https://github.com/home-assistant/core.git synced 2026-06-30 11:16:05 +01:00
Files
core/tests/components/kegtron/__init__.py
T
Franck Nijhof 88f6b7159a Fix line length violations in tests/components j-l (#170961)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-05-17 17:16:11 -04:00

58 lines
1.4 KiB
Python

"""Tests for the Kegtron integration."""
from homeassistant.helpers.service_info.bluetooth import BluetoothServiceInfo
NOT_KEGTRON_SERVICE_INFO = BluetoothServiceInfo(
name="Not it",
address="61DE521B-F0BF-9F44-64D4-75BBE1738105",
rssi=-63,
manufacturer_data={3234: b"\x00\x01"},
service_data={},
service_uuids=[],
source="local",
)
KEGTRON_KT100_SERVICE_INFO = BluetoothServiceInfo(
name="D0:CF:5E:5C:9B:75",
manufacturer_data={
65535: (
b"I\xef\x13\x88\x02\xe2\x01Single Port\x00\x00\x00\x00\x00\x00\x00\x00\x00"
)
},
address="D0:CF:5E:5C:9B:75",
rssi=-82,
service_data={},
service_uuids=[],
source="local",
)
KEGTRON_KT200_PORT_1_SERVICE_INFO = BluetoothServiceInfo(
name="D0:CF:5E:5C:9B:75",
manufacturer_data={
65535: (
b"#P\xc3P2\xc8APort 1"
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
)
},
address="D0:CF:5E:5C:9B:75",
rssi=-82,
service_uuids=[],
service_data={},
source="local",
)
KEGTRON_KT200_PORT_2_SERVICE_INFO = BluetoothServiceInfo(
name="D0:CF:5E:5C:9B:75",
manufacturer_data={
65535: (
b"\xe62:\x98\x02\xe2Q2nd Port"
b"\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00"
)
},
address="D0:CF:5E:5C:9B:75",
rssi=-82,
service_uuids=[],
service_data={},
source="local",
)