* Reduce overhead to filter entities in the recorder * fix type
Co-authored-by: Paulus Schoutsen <paulus@home-assistant.io>