--- layout: template title: API - pyatv.core permalink: /api//core link_group: api ---

Module pyatv.core

Core module of pyatv.

Classes

class StateProducer (max_calls: int = 0)

Base class for objects announcing state changes to a listener.

Initialize a new StateProducer instance.

Ancestors

  • typing.Generic

Subclasses

Instance variables

var listener -> ~StateListener

Return current listener object.

Methods

def state_was_updated(self) -> None

Call when state was updated.