device(_:stateChanged:) Declarationfunc device(_ device: MTRDevice, stateChanged state: MTRDeviceState)