<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def upcoming(self, details: bool = False) -> list: """Return watering statistics for the next 6 days."""

        endpoint = 'dailystats'
        key = 'DailyStats'
        if details:
            endpoint += '/details'
            key = 'DailyStatsDetails'
        data = await self._request('get', endpoint)
        return data[key]