def entity_registry(): """Registry fixture.""" return registries.ZHAEntityRegistry()
def test_registry_loose_matching(rule, matched, zha_device, channels): """Test loose rule matching.""" reg = registries.ZHAEntityRegistry() assert reg._loose_matched(zha_device, channels, rule) is matched