* Add bluetooth discovery * Use home assistant standard api * Fixup manufacture data * Adjust config flow to use standard features * Fixup tests * Mock bluetooth * Simplify device check * Fix missing typing Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
11 lines
391 B
Python
11 lines
391 B
Python
"""Tests for the Fjäråskupan integration."""
|
|
|
|
|
|
from bleak.backends.device import BLEDevice
|
|
from bleak.backends.scanner import AdvertisementData
|
|
|
|
from homeassistant.components.bluetooth import SOURCE_LOCAL, BluetoothServiceInfoBleak
|
|
|
|
COOKER_SERVICE_INFO = BluetoothServiceInfoBleak.from_advertisement(
|
|
BLEDevice("1.1.1.1", "COOKERHOOD_FJAR"), AdvertisementData(), source=SOURCE_LOCAL
|
|
)
|