def set(self, entity_id, new_state, attributes=None):
        set_state(self._api, entity_id, new_state, attributes)
TODO: add docstring
dataset/ETHPy150Open home-assistant/home-assistant/homeassistant/remote.py/StateMachine.set--crossover with--dataset/ETHPy150Open treasure-data/td-client-python/tdclient/bulk_import_api.py/BulkImportAPI.bulk_import_upload_file