Home Assistant keeps trying to connect to my Plex server when it's off

I have my home NAS set to turn on and off automatically at certain times, my NAS runs Plex and naturally I linked Home Assistant to that, which is great aside from one thing.

This auto off trips Home Assistant into constantly trying to connect when the NAS is off, something that it will never succeed at until the server turns back on.

Is there any way to only attempt to connect between certain times?