def METHOD_NAME(MockAppController, ieee_mock):
    """Zigpy device mock."""
    def _dev(ieee=None, nwk=zigpy.types.NWK(0x1234)):
        if ieee is None:
            ieee = ieee_mock
        device = MockAppController.add_device(ieee, nwk)
        return device
    return _dev