code: async def zone(dev: Device, zone, activate):
      
      if zone:
          zone = await dev.get_zone(zone)
          click.echo("%s %s" % ("Activating" if activate else "Deactivating", zone)) 
          await zone.activate(activate)
      else:
          click.echo("Zones:")
          for zone in await dev.get_zones():
              act = False
              if zone.active:
                  act = True
              click.echo("  * " + click.style(str(zone), bold=act))
docs: Get and change outputs.