Commit graph

624 commits

Author SHA1 Message Date
Benjamin Auquite
003000e692 @th3w1zard1 is a code owner! 2023-03-26 16:12:26 -05:00
Benjamin Auquite
529c1171d4 Update version in manifest to 1.6.0 2023-03-26 16:10:27 -05:00
Benjamin Auquite
845c150159 Forgot a comma 2023-03-26 15:58:46 -05:00
Benjamin Auquite
f3f8e3940d return basnijholt's original settings.
replaced `-v` with `-qq` again in `pytest.yaml`,
returned `branches: [master]` in both yaml files.
2023-03-26 15:48:15 -05:00
Benjamin Auquite
a442db6a46 Manifest keys should be sorted: domain, name, then alphabetical order 2023-03-26 15:39:22 -05:00
Benjamin Auquite
d42a01d9aa wording in new messages. 2023-03-26 15:33:31 -05:00
Benjamin Auquite
b4bdbb7659 add testing steps to workflow action in logs.
Help the next person running into this issue again.
2023-03-26 15:30:04 -05:00
Benjamin Auquite
5255360c16 Can't stand the deprecation warnings. 2023-03-26 15:03:10 -05:00
Benjamin Auquite
0e85b859e9 "instance" was created in the basic features PR. 2023-03-26 14:58:31 -05:00
Benjamin Auquite
34e082c151 increase verbosity for analysis 2023-03-26 14:47:13 -05:00
Benjamin Auquite
e3eb5415f2 Update test_dependencies.py
pytest reversion todo in later commit
2023-03-26 14:40:44 -05:00
allcontributors[bot]
66e65e2fe7
docs: add raman325 as a contributor for code (#466)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-03-25 20:41:56 -07:00
allcontributors[bot]
97e2e27a9b
docs: add firstof9 as a contributor for code (#465)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-03-25 20:28:22 -07:00
Benjamin Auquite
08ff04141e
Feature requests: Switch now optional for service calls | New default icons | Reload .yaml w/o restart | adapt_delay ms (#459) 1.6.0
* added #274

* attempt getSwitchFromLightId()

* Update switch.py

* changed from register_entity_service to hass.services.async_register

* Update switch.py

* Update switch.py

* Update switch.py

* Update switch.py

* Update switch.py

* Update switch.py

* Update services.yaml

* Update switch.py

* test

* test builds ready

* target selector may not be possible with current syntax

priority is backwards-compatibility as I know most people will smash that update button

* expanded light groups

* test builds ready

* add feature #104

* Update custom_components/adaptive_lighting/switch.py

Co-authored-by: Chris <firstof9@gmail.com>

* Might as well type both. No reason not to.

Co-authored-by: Chris <firstof9@gmail.com>

* Might as well type both. No reason not to.

Co-authored-by: Chris <firstof9@gmail.com>

* Reformatted debug messages.

Reimported ServiceCall as suggested

* Multiple switches allowed again in services.

Apparently this was possible before.

With this change, the `lights` argument must not be passed with multiple switches, or the integration has no way of knowing what the user wants to do. Integration did not make this check in prior versions.

Also reformatted the debug messages.
Removed `automerge.yaml` (my apologies)

* Reload config without restart.

You can now reload any changes to the yaml file without restarting your home assistant. Should show a 'reload' button in your integrations page or you can call the homeassistant reload integration service call.

See https://community.home-assistant.io/t/how-to-allow-custom-compontent-for-yaml-configuration-reloading/391190/4

* Use snake_case for function name 'parseServiceArgs'

* Slight rephrase

* Small style changes

* Rephrased debug messages.

Removed `integration_entities` as we rewrote the code from that function already in parse_service_args. Reference function now above parse_service_args.

* removed: `these_switches = data = None`

* Factor out _find_switch_with_lights

* Rename function and add log statement

* Remove pylint marker

* Handle multiple switches found

* Small changes

* Rename _parse_service_args to _get_switches_from_service_call

* Rephrase log messages

* Add type hint

---------

Co-authored-by: Chris <firstof9@gmail.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-03-25 20:22:05 -07:00
allcontributors[bot]
5552f5ec89
docs: add skycarl as a contributor for doc (#464) 1.5.0
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-03-25 19:12:47 -07:00
Skyler Carlson
c8ab1df741
Fix sunrise vs sunset typo (#458)
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-03-25 19:11:51 -07:00
allcontributors[bot]
8c630c995a
docs: add th3w1zard1 as a contributor for code (#463)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-03-25 12:46:10 -07:00
Benjamin Auquite
231e7c197d
Show config options on the switch as attributes with include_config_in_attributes option (#445)
* Switch attributes now show the config settings.

`sunset_time`, `sunrise_time`, `max_sunrise_time`, and `min_sunset_time` show 'null' when not overridden - TODO

* fixed basnijholt's requested issues

* Run pre-commit

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* 'configuration' attr holds list of config options

returned the `=` from basnijholt's review.

* Small style changes

* Add include_config_in_attributes to en.json

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <bas@nijho.lt>
2023-03-25 12:43:51 -07:00
Bas Nijholt
393885a019
Do not test on Python 3.9, which Home Assistant no longer supports (#429) 2023-02-12 14:40:38 -08:00
Bas Nijholt
7fefa7de96
Update pre-commit filters (#432) 2023-02-12 14:37:40 -08:00
allcontributors[bot]
c3f26a3685
docs: add brebtatv as a contributor for translation (#431)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2023-02-12 14:34:42 -08:00
Tomáš Valigura
738e7957c6
Add files via upload (#422)
Please add a Czech translation. Translated with love in collaboration with Jitka Kravcová.

Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-02-12 14:33:21 -08:00
allcontributors[bot]
53455f15a7
docs: add deviantintegral as a contributor for doc (#428)
* docs: update README.md

* docs: update .all-contributorsrc

---------

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-02-12 14:28:56 -08:00
Andrew Berry
6482fc54c2
Add troubleshooting steps for lights (#427)
* Fix skipping heading level

* Add troubleshooting for when lights misbehave

* Rephrase Zigbee groups troubleshooting section

Co-authored-by: Andrew Berry <andrew@furrypaws.ca>

---------

Co-authored-by: Bas Nijholt <basnijholt@gmail.com>
2023-02-12 14:28:37 -08:00
Bas Nijholt
7ee7dfe570
Rename ci.yaml to pytest.yaml 2023-01-12 12:42:33 -08:00
Bas Nijholt
ce4503c9c6
Also trigger manual control when using "color_temp" in mired format (#402) 1.4.1 2022-12-11 17:23:08 -08:00
Bas Nijholt
dc8fa60e75 Bump to 1.4.0 2022-12-11 16:56:14 -08:00
Bas Nijholt
1ef55ca180
Use Kelvin instead of Mired, default since core=2022.11 (#375) 1.4.0
* Use Kelvin instead of Mired, default since core=2022.11

* Fix attributes

* Use ATTR_COLOR_TEMP_KELVIN in tests

* use kelvin in tests

* no duplicate

* Round to nearest 5
2022-12-11 16:54:57 -08:00
allcontributors[bot]
4ef577ff7c
docs: add ngommers as a contributor for translation (#401)
* docs: update README.md

* docs: update .all-contributorsrc

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-12-11 09:35:55 -08:00
ngommers
8ed8531610
Create nl.json (#399)
add dutch language
2022-12-11 09:35:27 -08:00
allcontributors[bot]
185b4041bf
docs: add talllguy as a contributor for doc (#397)
* docs: update README.md

* docs: update .all-contributorsrc

Co-authored-by: allcontributors[bot] <46447321+allcontributors[bot]@users.noreply.github.com>
2022-12-08 10:48:44 -08:00
Bas Nijholt
3c463219e0
Merge pull request #396 from talllguy/service-lights-optional
Updated optional status for lights in service
2022-12-08 10:48:14 -08:00
Elliott Plack
b910b565d4
Updated optional status for lights in service
While implementing `adaptive_lighting.**apply**` in automations, I've noticed that listing the lights isn't required. For instance, if I have an adaptive lighting entity called `adaptive_lighting.office`, I can condition a motion sensor trigger with the following action successfully:

    service: adaptive_lighting.apply
    data:
      entity_id: switch.adaptive_lighting_office
      turn_on_lights: true
2022-12-08 09:22:14 -05:00
Bas Nijholt
5c4ce3cae6
bump to version 1.3.0 2022-12-07 12:46:28 -08:00
Bas Nijholt
2029319997
Merge pull request #384 from Mark-Niemeyer/send_split_delay 1.3.0
add a delay between sending commands using separate_turn_on_commands
2022-11-27 12:14:09 -08:00
Mark Niemeyer
97bb2cf3de use send_split_delay also when no transition is used 2022-11-27 20:37:28 +01:00
Mark Niemeyer
bf82beab82 add send_split_delay to README 2022-11-27 20:37:28 +01:00
Mark Niemeyer
ff6494240d add a delay between sending of commands when using separate_turn_on_commands 2022-11-27 20:37:28 +01:00
Bas Nijholt
e33ddc8a46
Merge pull request #389 from basnijholt/all-contributors/add-Mark-Niemeyer
docs: add Mark-Niemeyer as a contributor for code
2022-11-27 09:16:10 -08:00
allcontributors[bot]
75fde28aca
docs: update .all-contributorsrc 2022-11-27 17:09:01 +00:00
allcontributors[bot]
d7e1b5cf4d
docs: update README.md 2022-11-27 17:09:00 +00:00
Bas Nijholt
e18a211961
Merge pull request #388 from basnijholt/all-contributors/add-Mark-Niemeyer
docs: add Mark-Niemeyer as a contributor for translation
2022-11-27 09:07:52 -08:00
Bas Nijholt
e31eebf2a4
Merge pull request #387 from Mark-Niemeyer/update-german-translations
update german translation
2022-11-27 09:07:43 -08:00
allcontributors[bot]
3077bdf098
docs: update .all-contributorsrc 2022-11-27 17:07:34 +00:00
allcontributors[bot]
8275ccd36c
docs: update README.md 2022-11-27 17:07:33 +00:00
Bas Nijholt
2ee7801bc3
Merge pull request #386 from Mark-Niemeyer/flake8_github
pre-commit: switch flake8 repo from gitlab to github
2022-11-27 09:05:56 -08:00
Mark Niemeyer
040d576948 update german translation 2022-11-27 17:30:28 +01:00
Mark Niemeyer
54ddb8c4ae pre-commit: switch flake8 repo from gitlab to github 2022-11-27 17:18:48 +01:00
Bas Nijholt
9ed1f596eb Change title for better view in HACS 2022-11-13 12:33:42 -08:00
Bas Nijholt
e9984ef4e1 Change title, better description in HACS 2022-11-13 12:13:00 -08:00