Home Assistant release with the issue: 0.97.0
Last working Home Assistant release (if known): 0.96.x
Operating environment (Hass.io/Docker/Windows/etc.): Hassio
Component/platform: Nuki
Description of problem: Nuki lock component is active only for ~ 1 minute after HA restart. It is possible lock/unlock right after restart HA. But after few minutes it is in "Unavailable" state forever.
Problem-relevant configuration.yaml entries and (fill out even if it seems unimportant):
lock:
- platform: nuki
host: 192.*.*.*
token: !secret nuki_token
Traceback (if applicable):
Additional information:
See pic.

Probably related to: https://github.com/home-assistant/home-assistant/issues/25786
I confirm after calling nuki.check_connection lock entity become available.
A think there is some problem with refreshing lock state in nuki compoment!
Thanks for reporting @bigboban :)
Should be fixed by:
https://github.com/home-assistant/home-assistant/pull/25881
The fix is released in 0.97.2.
It seems to @MartinHjelmare !
Many thanks :)