oh right, because the TV is not available on the network when it's sleeping.
then you could save the desired brightness into some variable, and when the TV gets turned on apply the settings. I believe HA should be able to make an event when that happens. if there's a large delay, you could make a timer that forcibly refreshes the TV state every few seconds