Why do I have to re-pair my Apple Magic Wireless Keyboard (A1314) every morning? I take my laptop home every night. When I come into the office I have to remove the keyboard from the BT devices and re-pair it - otherwise it won't connect. My Apple Magic Trackpad (A1339) connects automatically.

This has only started happening recently. It is consistent and I have to go through the re-pair process every morning. (I have tried replacing the batteries)

Is it a BT issue or a hardware issue? What's the best way to debug this?

Connecting to a MacBook Pro (13-inch, 2017) running macOS High Sierra v10.13.6
The issue was caused by an old machine (MacBook Air 2012) in the office that used to be paired with keyboard. The person using the old machine would arrive into the office earlier than me so by the time I had arrived the keyboard had connected to their machine.

Solved by removing the device from the bluetooth devices of the old machine.