History broken

Hi everyone,
a couple months ago, I tried to make the logbook “private” with this approach: https://community.home-assistant.io/t/admin-only-access-for-logbook-and-history-menus/187722/43

With an update, this change broke and i reverted the changes, but since then, my history cant be displayed on most sensors :frowning:

Now the time has come, where I want to fix this… but don’t know where to start :frowning:
image