Skip to content

Commit 86e8b47

Browse files
committed
chore: Updated naming of integration
1 parent f75983d commit 86e8b47

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+477
-531
lines changed

.build/createGithubRelease.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { readFileSync } from 'fs';
22
import { join } from 'path';
33

4-
const bodySuffix = "---\nEnjoying the integration? Why not make a one time or monthly [GitHub sponsorship](https://github.com/sponsors/bottlecapdave) or use my [Target Time Period referral link](https://share.octopus.energy/gray-jade-372)?"
4+
const bodySuffix = "---\nEnjoying the integration? Why not make a one time or monthly [GitHub sponsorship](https://github.com/sponsors/bottlecapdave)?"
55

66
function getMinimumHomeAssistantVersion() {
77
const hacsFilePath = join(__dirname, '../hacs.json');

.build/updateVersion.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { readFileSync, writeFileSync } from 'fs';
22
import { join } from 'path';
33

4-
const manifestFilePath = join(__dirname, '../custom_components/target_time_periods/manifest.json');
5-
const constantFilePath = join(__dirname, '../custom_components/target_time_periods/const.py');
4+
const manifestFilePath = join(__dirname, '../custom_components/target_timeframes/manifest.json');
5+
const constantFilePath = join(__dirname, '../custom_components/target_timeframes/const.py');
66

77
function updateManifestVersion(version: string) {
88
const buffer = readFileSync(manifestFilePath);

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,15 +59,15 @@ body:
5959
id: ha-logs
6060
attributes:
6161
label: Home Assistant Logs
62-
description: Paste any related Home Assistant logs here. Please follow the instructions as outlined in the [FAQ](https://bottlecapdave.github.io/homeassistant-targettimeperiods/faq#how-do-i-increase-the-logs-for-the-integration)
62+
description: Paste any related Home Assistant logs here. Please follow the instructions as outlined in the [FAQ](https://bottlecapdave.github.io/homeassistant-targettimeframes/faq#how-do-i-increase-the-logs-for-the-integration)
6363
validations:
6464
required: true
6565
- type: checkboxes
6666
id: confirm
6767
attributes:
6868
label: Confirmation
6969
options:
70-
- label: I confirm that I cannot find my solution within the [documentation](https://bottlecapdave.github.io/homeassistant-targettimeperiods)
70+
- label: I confirm that I cannot find my solution within the [documentation](https://bottlecapdave.github.io/homeassistant-targettimeframes)
7171
required: true
72-
- label: I confirm that I cannot find my solution within the [FAQ](https://bottlecapdave.github.io/homeassistant-targettimeperiods/faq)
72+
- label: I confirm that I cannot find my solution within the [FAQ](https://bottlecapdave.github.io/homeassistant-targettimeframes/faq)
7373
required: true

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: false
22
contact_links:
33
- name: Integration Support
4-
url: https://github.com/BottlecapDave/homeassistant-targettimeperiods/discussions
4+
url: https://github.com/BottlecapDave/homeassistant-targettimeframes/discussions
55
about: Please ask and answer questions here.

.github/ISSUE_TEMPLATE/feature_request.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,6 @@ body:
3030
attributes:
3131
label: Confirmation
3232
options:
33-
- label: By submitting this feature request, you agree that you have read the [documentation](https://bottlecapdave.github.io/homeassistant-targettimeperiods) and confirmed it does not already exist
33+
- label: By submitting this feature request, you agree that you have read the [documentation](https://bottlecapdave.github.io/homeassistant-targettimeframes) and confirmed it does not already exist
3434
required: true
3535
- label: I am willing/able to help contribute to the solution of this feature

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -67,12 +67,12 @@ jobs:
6767
run: |
6868
python -m pytest tests/integration
6969
env:
70-
API_KEY: ${{ secrets.target_time_periods_API_TOKEN }}
71-
GAS_MPRN: ${{ secrets.target_time_periods_GAS_MPRN }}
72-
GAS_SN: ${{ secrets.target_time_periods_GAS_SN }}
73-
ELECTRICITY_MPAN: ${{ secrets.target_time_periods_ELECTRICITY_MPAN }}
74-
ELECTRICITY_SN: ${{ secrets.target_time_periods_ELECTRICITY_SN }}
75-
ACCOUNT_ID: ${{ secrets.target_time_periods_ACCOUNT_ID }}
70+
API_KEY: ${{ secrets.target_timeframes_API_TOKEN }}
71+
GAS_MPRN: ${{ secrets.target_timeframes_GAS_MPRN }}
72+
GAS_SN: ${{ secrets.target_timeframes_GAS_SN }}
73+
ELECTRICITY_MPAN: ${{ secrets.target_timeframes_ELECTRICITY_MPAN }}
74+
ELECTRICITY_SN: ${{ secrets.target_timeframes_ELECTRICITY_SN }}
75+
ACCOUNT_ID: ${{ secrets.target_timeframes_ACCOUNT_ID }}
7676
release:
7777
name: Release
7878
if: ${{ github.repository_owner == 'BottlecapDave' && (github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta') }}

.releaserc.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
],
4747
[
4848
"@semantic-release/git", {
49-
"assets": ["package.json", "CHANGELOG.md", "./custom_components/target_time_periods"],
49+
"assets": ["package.json", "CHANGELOG.md", "./custom_components/target_timeframes"],
5050
"message": "release: Released v${nextRelease.version} [skip ci]"
5151
}
5252
],

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
# HomeAssistant-TargetTimePeriods
1+
# HomeAssistant-TargetTimeframes

_docs/blueprints.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ The following blueprints can help you configure data sources provided by other i
88

99
### Carbon Intensity
1010

11-
[Install blueprint](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FBottlecapDave%2FHomeAssistant-OctopusEnergy%2Fblob%2Fmain%2F_docs%2Fblueprints%target_time_periods_carbon_intensity.yaml) | [Source](./blueprints/target_time_periods_carbon_intensity.yaml)
11+
[Install blueprint](https://my.home-assistant.io/redirect/blueprint_import/?blueprint_url=https%3A%2F%2Fgithub.com%2FBottlecapDave%2FHomeAssistant-OctopusEnergy%2Fblob%2Fmain%2F_docs%2Fblueprints%target_timeframes_carbon_intensity.yaml) | [Source](./blueprints/target_timeframes_carbon_intensity.yaml)
1212

1313
This blueprint will provide the data source for the UK Carbon Intensity as provided by the [Carbon Intensity](https://github.com/BottlecapDave/HomeAssistant-CarbonIntensity) integration.

_docs/blueprints/target_time_periods_carbon_intensity.yaml renamed to _docs/blueprints/target_timeframes_carbon_intensity.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
11
blueprint:
2-
name: Target Time Periods - Carbon Intensity source
3-
description: Configures a targe time period data source from Carbon Intensity
2+
name: Target Timeframess - Carbon Intensity source
3+
description: Configures a targe timeframe data source from Carbon Intensity
44
domain: automation
55
author: BottlecapDave
66
input:
7-
target_time_period_data_source_sensor:
8-
name: Target time period data source sensor
7+
target_timeframe_data_source_sensor:
8+
name: Target timeframe data source sensor
99
description: The data source sensor which represents the data source to update
1010
selector:
1111
entity:
1212
filter:
1313
- domain:
1414
- sensor
15-
integration: target_time_periods
15+
integration: target_timeframes
1616
multiple: false
1717
carbon_intensity_current_day_rates:
1818
name: Current day rates
@@ -34,9 +34,8 @@ blueprint:
3434
- event
3535
integration: carbon_intensity
3636
multiple: false
37-
source_url: https://github.com/BottlecapDave/HomeAssistant-OctopusEnergy/blob/develop/_docs/blueprints/octopus_energy_spin_wheel_of_fortune_single.yml
3837
variables:
39-
target_time_period_data_source_sensor: !input target_time_period_data_source_sensor
38+
target_timeframe_data_source_sensor: !input target_timeframe_data_source_sensor
4039
carbon_intensity_current_day_rates: !input carbon_intensity_current_day_rates
4140
carbon_intensity_next_day_rates: !input carbon_intensity_next_day_rates
4241
mode: queued
@@ -48,7 +47,7 @@ triggers:
4847
entity_id: !input carbon_intensity_next_day_rates
4948
condition: []
5049
action:
51-
- action: target_time_periods.update_target_time_period_data_source
50+
- action: target_timeframes.update_target_timeframe_data_source
5251
data: >
5352
{% set all_rates = state_attr(carbon_intensity_current_day_rates, 'rates') + state_attr(carbon_intensity_next_day_rates, 'rates') %}
5453
{% set data = namespace(new_rates=[]) %}
@@ -60,4 +59,4 @@ action:
6059
{% endfor %}
6160
{{ { 'data': data.new_rates } | to_json }}
6261
target:
63-
entity_id: !input target_time_period_data_source_sensor
62+
entity_id: !input target_timeframe_data_source_sensor

0 commit comments

Comments
 (0)