mirror of
https://github.com/esphome/esphome.git
synced 2026-10-11 13:54:12 +00:00
Merge remote-tracking branch 'origin/dev' into neutral-ble-client
# Conflicts: # esphome/components/ble_client/automation.h
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
"""The codegen hook external filtering components use to turn on the filter slot."""
|
||||
|
||||
from esphome.components import bluetooth_proxy
|
||||
from esphome.core import CORE
|
||||
|
||||
|
||||
def test_enable_advertisement_filter_emits_define() -> None:
|
||||
"""External components call this rather than emitting the define."""
|
||||
bluetooth_proxy.enable_advertisement_filter()
|
||||
|
||||
assert "USE_BLUETOOTH_PROXY_ADVERTISEMENT_FILTER" in {
|
||||
define.name for define in CORE.defines
|
||||
}
|
||||
Reference in New Issue
Block a user