Wake on lan error: TypeError: an integer is required (got type NoneType)

I updated to 112 from 111 and this error comes up and I cant use the switch at all.
I checked the changes made to the newest update, but I coulndt find something relevant. Maybe I missed it?

I came across this one too. It’s not noted at all in any change logs and that’s wrong.

A PR has been opened to address it but seemingly wasn’t deemed worthy of inclusion in 112.1 or 112.2

Issue seems to have been added in https://github.com/home-assistant/core/pull/36510 and not actually tested before inclusion in the project.