Skip to content

Commit

Permalink
Merge branch 'master' into no-yamllint-exceptions
Browse files Browse the repository at this point in the history
  • Loading branch information
kylegordon authored Sep 22, 2024
2 parents 3a0301a + 4b8432f commit 339d583
Show file tree
Hide file tree
Showing 280 changed files with 26,433 additions and 5,631 deletions.
1 change: 0 additions & 1 deletion .HA_VERSION

This file was deleted.

7 changes: 7 additions & 0 deletions .gitguardian.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 2

secret:
ignored_paths:
- 'README.md'
- 'custom_components/**'
8 changes: 4 additions & 4 deletions .github/workflows/esphome-parallel.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,10 @@ jobs:
cp -R esphome/travis_secrets.yaml.txt esphome/common/secrets.yaml
cp -R esphome/travis_secrets.yaml.txt esphome/secrets.yaml
- name: Compile all ESPHome ${{matrix.file}}
uses: esphome/build-action@v3
uses: esphome/build-action@v4
with:
version: stable
yaml_file: ${{matrix.file}}
yaml-file: ${{matrix.file}}

loop-beta:
name: Test ESPHome Beta firmware
Expand All @@ -77,10 +77,10 @@ jobs:
cp -R esphome/travis_secrets.yaml.txt esphome/common/secrets.yaml
cp -R esphome/travis_secrets.yaml.txt esphome/secrets.yaml
- name: Compile all ESPHome ${{matrix.file}}
uses: esphome/build-action@v3
uses: esphome/build-action@v4
with:
version: beta
yaml_file: ${{matrix.file}}
yaml-file: ${{matrix.file}}

# This is used by branch protections
final:
Expand Down
7 changes: 0 additions & 7 deletions configuration.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,7 @@ homeassistant:
- type: trusted_networks
trusted_networks:
- 172.24.32.0/24
- 172.24.34.0/24
- 172.18.0.0/24
- 10.8.0.18/32
- 127.0.0.1
- type: legacy_api_password
api_password: !secret api_password

whitelist_external_dirs:
- /tmp
Expand Down Expand Up @@ -90,8 +85,6 @@ http:
use_x_forwarded_for: true
trusted_proxies:
- 172.18.0.0/24
- 127.0.0.1
- ::1
cors_allowed_origins:
- http://homeauto.vpn.glasgownet.com
- http://viewpoint.house
Expand Down
8 changes: 6 additions & 2 deletions custom_components/adaptive_lighting/switch.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@
callback,
)
from homeassistant.helpers import entity_platform, entity_registry
from homeassistant.helpers.entity_component import async_update_entity

if [MAJOR_VERSION, MINOR_VERSION] < [2023, 9]:
from homeassistant.helpers.entity import DeviceInfo
Expand Down Expand Up @@ -638,7 +639,10 @@ def _expand_light_groups(


def _is_light_group(state: State) -> bool:
return "entity_id" in state.attributes
return "entity_id" in state.attributes and not state.attributes.get(
"is_hue_group",
False,
)


@bind_hass
Expand Down Expand Up @@ -2489,7 +2493,7 @@ async def significant_change(
# Ensure HASS is correctly updating your light's state with
# light.turn_on calls if any problems arise. This
# can happen e.g. using zigbee2mqtt with 'report: false' in device settings.
await self.hass.helpers.entity_component.async_update_entity(light)
await async_update_entity(self.hass, light)
refreshed_state = self.hass.states.get(light)
assert refreshed_state is not None

Expand Down
269 changes: 269 additions & 0 deletions custom_components/adaptive_lighting/translations/bg.json

Large diffs are not rendered by default.

73 changes: 72 additions & 1 deletion custom_components/adaptive_lighting/translations/ro.json
Original file line number Diff line number Diff line change
@@ -1 +1,72 @@
{}
{
"config": {
"step": {
"user": {
"description": "Fiecare instanţă poate conţine mai multe lumini!"
}
}
},
"options": {
"step": {
"init": {
"data_description": {
"brightness_mode_time_light": "(Se ignoră dacă `modul_de_luminozitate='implicit'`) Durată în secunde a modificării luminozităţii în sus/jos cand poziţia sorelui este înainte sau după răsărit/apus.",
"sunrise_offset": "Ajustați ora răsăritului cu un decalaj pozitiv sau negativ în secunde.⏰",
"autoreset_control_seconds": "Resetare automată al controlului manual după un număr de secunde. Setaţi la 0 pentru a dezactiva.",
"brightness_mode": "Mod de luminozitate de utilizat. Valorile posibile sunt: 'implicit', 'liniar' şi 'hiperbolic' ( ultilizează 'mod_luminozitate_timp_de_noapte' şi 'mod_luminozitate_timp_de_zi').",
"sleep_brightness": "Procentul luminozităţii luminilor în modul 'somn'.",
"interval": "Frecvenţa adaptării luminilor, în secunde.",
"sunset_offset": "Ajustați ora răsăritului cu un decalaj pozitiv sau negativ în secunde."
},
"title": "Opţiuni Iluminare Adaptivă",
"data": {
"adapt_only_on_bare_turn_on": "adaptează_doar_la_comanda_de_arpindere: La aprinderea iniţială a luminilor. Dacă este activat, IA va adapta luminile doar dacă se invocă 'light.turn_on' fără a specifica culoarea sau luminozitatea. Aceasta, de exemplu, previne adaptarea atunci când se activează o scenă. Dacă este dezactivat,IA va adaptata luminile indiferent de prezența valorilor culorii sau luminozității în service_data. Necesită activarea opţiunii 'preia_controlul. "
}
}
}
},
"title": "Iluminare Adaptivă",
"services": {
"apply": {
"description": "Aplicaţi luminilor setările curente ale Iluminiării Adaptive luminilor.",
"fields": {
"lights": {
"description": "O lumină (sau listă de lumini) pentru care să se aplice setările."
}
}
},
"change_switch_settings": {
"fields": {
"entity_id": {
"description": "Numele entităţii."
},
"sleep_brightness": {
"description": "Procentul luminozităţii luminilor în modul 'somn'."
},
"sleep_transition": {
"description": "Durata de tranziție (în secunde) atunci când modul de „somn” este activat."
},
"autoreset_control_seconds": {
"description": "Resetare automată al controlului manual după un număr de secunde. Setaţi la 0 pentru a dezactiva."
},
"only_once": {
"description": "Adaptează luminile doar la pornire ('activat') sau adaptează continuu ('dezactivat')."
},
"sunrise_offset": {
"description": "Ajustați ora răsăritului cu un decalaj pozitiv sau negativ în secunde.⏰"
},
"sunset_offset": {
"description": "Ajustați ora apusului cu un decalaj pozitiv sau negativ în secunde."
}
},
"description": "Schimbați orice setări dorită în comutator. Toate opțiunile de aici sunt la fel ca în fluxul de configurare."
},
"set_manual_control": {
"fields": {
"lights": {
"description": "Numele luminii (luminilor) , dacă nu sunt specificate, sunt selectate toate luminile ce aparţin de comutator."
}
}
}
}
}
Loading

0 comments on commit 339d583

Please sign in to comment.