This prevents errors when trying to run without HA, since HA overwrites some async types in the background.