Skip to content
This repository has been archived by the owner on Dec 9, 2023. It is now read-only.

Commit

Permalink
Reverted code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
richard-scott committed Dec 5, 2023
1 parent b64d159 commit 02d4ef8
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 68 deletions.
1 change: 0 additions & 1 deletion .github/workflows/default_config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ jobs:
with:
ref: ${{ github.head_ref }}
path: "clone"
submodules: "recursive"

- name: "Checkout Git https://github.com/home-assistant/core/"
uses: actions/checkout@v3
Expand Down
12 changes: 3 additions & 9 deletions bin/update.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,8 @@ if [[ ! -d upstream ]]; then

fi

if [[ -d core ]]; then
cd core
git pull --depth 1
cd "${START_DIR}"
fi

# Create a variable for the source directory we are using.
SRC_DIR="${START_DIR}/core/homeassistant/components/default_config"
SRC_DIR="${START_DIR}/upstream/homeassistant/components/default_config"

# Check the source directory exists
test -d "${SRC_DIR}" || exit 1
Expand All @@ -42,10 +36,10 @@ if [[ ! -d custom_components/default_config ]]; then
fi

# Check for changed files
if [[ $(rsync -avz --checksum --dry-run ${START_DIR}/upstream/homeassistant/components/default_config ${START_DIR}/core/homeassistant/components | grep -c default_config) -gt 1 ]]; then
if [[ $(rsync -avz --checksum --dry-run ${START_DIR}/upstream/homeassistant/components/default_config ${START_DIR}/custom_components | grep -c default_config) -gt 1 ]]; then

# Copy over the upstream files
rsync -avz "${START_DIR}/core/homeassistant/components/default_config" "${START_DIR}/custom_components"
rsync -avz "${START_DIR}/upstream/homeassistant/components/default_config" "${START_DIR}/custom_components"

# Add in required data for the component to get loaded
cat <<<$(jq ". + { "version": \"${HOME_ASSISTANT_CORE_LATEST_TAG}.1\" }" ${START_DIR}/custom_components/default_config/manifest.json) >${START_DIR}/custom_components/default_config/manifest.json
Expand Down
1 change: 0 additions & 1 deletion core
Submodule core deleted from a1f7f8
53 changes: 1 addition & 52 deletions custom_components/default_config/manifest.json
Original file line number Diff line number Diff line change
@@ -1,52 +1 @@
{
"domain": "default_config",
"name": "Default Config",
"codeowners": [
"@home-assistant/core"
],
"dependencies": [
"application_credentials",
"assist_pipeline",
"automation",
"bluetooth",
"conversation",
"counter",
"dhcp",
"energy",
"frontend",
"hardware",
"history",
"homeassistant_alerts",
"input_boolean",
"input_button",
"input_datetime",
"input_number",
"input_select",
"input_text",
"logbook",
"logger",
"map",
"media_source",
"mobile_app",
"my",
"network",
"person",
"scene",
"schedule",
"script",
"ssdp",
"stream",
"sun",
"system_health",
"tag",
"timer",
"usb",
"webhook",
"zeroconf",
"zone"
],
"documentation": "https://www.home-assistant.io/integrations/default_config",
"integration_type": "system",
"quality_scale": "internal",
"version": "2023.11.3.1"
}
{ "domain": "default_config", "name": "Default Config", "codeowners": [ "@home-assistant/core" ], "dependencies": [ "application_credentials", "assist_pipeline", "automation", "bluetooth", "conversation", "counter", "dhcp", "energy", "frontend", "hardware", "history", "homeassistant_alerts", "input_boolean", "input_button", "input_datetime", "input_number", "input_select", "input_text", "logbook", "logger", "map", "media_source", "mobile_app", "my", "network", "person", "scene", "schedule", "script", "ssdp", "stream", "sun", "system_health", "tag", "timer", "usb", "webhook", "zeroconf", "zone" ], "documentation": "https://www.home-assistant.io/integrations/default_config", "integration_type": "system", "quality_scale": "internal", "version": "2023.11.3.1" }
6 changes: 1 addition & 5 deletions hacs.json
Original file line number Diff line number Diff line change
@@ -1,5 +1 @@
{
"name": "Home Assistant Cloud Hider",
"render_readme": true,
"homeassistant": "2023.11.3"
}
{ "name": "Home Assistant Cloud Hider", "render_readme": true, "homeassistant": "2023.11.3" }

0 comments on commit 02d4ef8

Please sign in to comment.