async def main():
    """The main part of the example script."""
    async with aiohttp.ClientSession() as session:
        zaehler = Volkszaehler(loop, session, UUID, host=HOST)

        # Get the data
        await zaehler.get_data()

        print("Average:", zaehler.average)
        print("Max:", zaehler.max)
        print("Min:", zaehler.min)
        print("Consumption:", zaehler.consumption)
        print("Data tuples:", zaehler.tuples)
async def main ( ) : async with aiohttp . ClientSession ( ) as session : zaehler = Volkszaehler ( loop , session , UUID , host = HOST ) await zaehler . get_data ( ) print ( "Average:" , zaehler . average ) print ( "Max:" , zaehler . max ) print ( "Min:" , zaehler . min ) print ( "Consumption:" , zaehler . consumption ) print ( "Data tuples:" , zaehler . tuples )
The main part of the example script.