def __init__(self, session, idx) -> None:
    self.session = session
    self.idx = idx
    self.mower = self.session.data['data'][self.idx]
    mower_attributes = self.__get_mower_attributes()
    self.mower_id = self.mower['id']
    self.mower_name = mower_attributes['system']['name']
    self.model = mower_attributes['system']['model']
    self.session.register_cb((lambda _: self.async_write_ha_state()), schedule_immediately=True)
def __init__(self, session, idx) -> None:
    self.session = session
    self.idx = idx
    self.mower = self.session.data['data'][self.idx]
    mower_attributes = self.__get_mower_attributes()
    self.mower_id = self.mower['id']
    self.mower_name = mower_attributes['system']['name']
    self.model = mower_attributes['system']['model']
    self.session.register_cb((lambda _: self.async_write_ha_state()), schedule_immediately=True)