Files
ha-core/tests/components/mopeka/__init__.py
J. Nick Koston 03a8dcfdc1 Add Mopeka integration (#86500)
* Add Mopeka integration

Mopeka makes BLE propane tank monitors

* cover

* wip

* wip

* bump lib

* strip binary sensor

* all sensors

* all sensors

* update tests

* change quality

* change quality

* adjust

* integration_type, strict-typing
2023-01-25 12:28:13 -05:00

36 lines
893 B
Python

"""Tests for the Mopeka integration."""
from homeassistant.helpers.service_info.bluetooth import BluetoothServiceInfo
NOT_MOPEKA_SERVICE_INFO = BluetoothServiceInfo(
name="Not it",
address="aa:bb:cc:dd:ee:ff",
rssi=-63,
manufacturer_data={3234: b"\x00\x01"},
service_data={},
service_uuids=[],
source="local",
)
PRO_SERVICE_INFO = BluetoothServiceInfo(
name="",
address="aa:bb:cc:dd:ee:ff",
rssi=-60,
manufacturer_data={89: b"\x08rF\x00@\xe0\xf5\t\xf0\xd8"},
service_data={},
service_uuids=["0000fee5-0000-1000-8000-00805f9b34fb"],
source="local",
)
PRO_GOOD_SIGNAL_SERVICE_INFO = BluetoothServiceInfo(
name="",
address="aa:bb:cc:dd:ee:ff",
rssi=-60,
manufacturer_data={89: b"\x08pC\xb6\xc3\xe0\xf5\t\xfa\xe3"},
service_data={},
service_uuids=["0000fee5-0000-1000-8000-00805f9b34fb"],
source="local",
)