diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
new file mode 100644
index 0000000000000000000000000000000000000000..2dc47bb5997cadd15bec12401632e5f876a1bc5a
--- /dev/null
+++ b/.gitlab-ci.yml
@@ -0,0 +1,7 @@
+deploy:
+  script:
+    - export PATH=$PATH:/opt/host/bin:/opt/host/local/bin
+    - cp -Rfv * /opt/host/homeassistant/python_scripts
+    - hasscli service python_script reload
+  tags:
+    - shell
diff --git a/set_state.py b/set_state.py
index 173ac11bf9acf86a3fbedc831ad832613b5fe632..f8d91158a3a0e2dec6ca65aec9e25d74ede24b37 100644
--- a/set_state.py
+++ b/set_state.py
@@ -1,16 +1,3 @@
-"""Set the state or other attributes for the specified entity."""
-
-# ========================================================================================
-# python_scripts/set_state.py
-# modified from -
-# https://community.home-assistant.io/t/how-to-manually-set-state-value-of-sensor/43975/37
-# ========================================================================================
-
-# ----------------------------------------------------------------------------------------
-# Set the state or other attributes for the specified entity.
-# Updates from @xannor so that a new entity can be created if it does not exist.
-# ----------------------------------------------------------------------------------------
-
 inputEntity = data.get("entity_id")
 if inputEntity is None:
     logger.warning("===== entity_id is required if you want to set something.")
@@ -37,4 +24,4 @@ else:
             else:
                 inputAttributesObject[item] = newAttribute
 
-        hass.states.set(inputEntity, inputState, inputAttributesObject)
\ No newline at end of file
+        hass.states.set(inputEntity, inputState, inputAttributesObject)