'Update the partition state in HA, if needed.'

@callback
def _update_callback(self, partition):

    if ((partition is None) or (int(partition) == self._partition_number)):
        self.hass.async_add_job(self.async_update_ha_state())
