* fix homekit linked battery sensor crash * simplified missing linked battery * fixed formatting * Make if faster