There are some breaking changes for Bayesian in 2022.10
See updated documentation: Bayesian - Home Assistant
See the breaking documentation: 2022.10: All over the place - Home Assistant
See this discussion here: The Future of the Bayesian Integration - Thoughts wanted
See information on why the change and how to ‘fix’ your config: Bayesian sensor fundamentally changed · Issue #79694 · home-assistant/core · GitHub