Commit graph

90 commits

Author SHA1 Message Date
Tsvi Mostovicz
fbc4a87166
Remove Jewish Calendar config flow upgrade (#129612) 2024-11-10 19:35:01 +01:00
Jan Bouwhuis
ee41725b53
Remove jewish_calendar yaml support after 6 months of deprecation (#130291) 2024-11-10 16:51:08 +01:00
Tsvi Mostovicz
57d1001603
Move Jewish Calendar to runtime data (#129609) 2024-11-06 14:19:58 +01:00
G Johansson
a2a3f59e65
Fix missing translation in jewish_calendar (#129822) 2024-11-04 18:01:39 +01:00
epenet
8b6c99776e
Cleanup unnecessary OptionsFlowWithConfigEntry (part 1) (#129752)
* Cleanup unnecessary OptionsFlowWithConfigEntry

* Fix emoncms

* Fix imap

* Fix met

* Fix workday
2024-11-03 22:57:18 +01:00
epenet
3d1e57766a
Simplify jewish_calendar reconfigure flow (#128008)
* Simplify jewish_calendar reconfigure flow

* Adjust
2024-10-09 15:34:11 +02:00
epenet
c7739a7760
Align async_step_reconfigure type hints (#127450) 2024-10-03 17:54:51 +02:00
epenet
a19a069b21
Use _get_reconfigure_entry in jewish_calendar (#127297) 2024-10-02 14:30:55 +02:00
epenet
46405d7738
Improve type hints in config_flow reconfigure step (#127224) 2024-10-01 22:21:54 +02:00
Tsvi Mostovicz
52c358e120
Add reconfigure flow for Jewish Calendar (#126773)
* Add reconfigure flow for Jewish Calendar

* Use async_update_reload_and_abort
2024-09-28 13:59:11 +02:00
epenet
68cdf8877c
Standardize import step variable name (part 3) (#124680) 2024-08-27 10:50:13 +02:00
Tsvi Mostovicz
de8415d5c7
Set Jewish Calendar quality scale (#120604) 2024-07-07 16:42:43 +02:00
Tsvi Mostovicz
7172d798f8
Fix Jewish calendar unique id move to entity (#120842) 2024-06-30 00:08:24 +02:00
Tsvi Mostovicz
143e8d09af
Fix blocking call in Jewish Calendar while initializing location (#120265) 2024-06-23 16:04:16 -05:00
Tsvi Mostovicz
29da88d8f6
Create a Jewish Calendar entity (#120253)
* Set has_entity_name to true

* Move common code to jewish calendar service entity

* Remove already existing assignment

* Move data to common entity

* Remove description name

* Use config entry title instead of name for the device

* Address comments
2024-06-23 19:55:27 +02:00
Tsvi Mostovicz
2cc34fd7e7
Improve Jewish calendar entities (#120236)
* By default don't enable all sensors

* Fix tests

* Add entity category

* Set has_entity_name to true

* Revert "Set has_entity_name to true"

This reverts commit 5ebfcde78a.
2024-06-23 17:26:45 +02:00
SLaks
2dfa0a3c90
Add Jewish Calendar attributes for non-date sensors (#116252) 2024-06-22 14:30:19 +02:00
Tsvi Mostovicz
9371277b85
Bump hdate to 0.10.9 (#119887) 2024-06-19 09:21:43 -05:00
Tsvi Mostovicz
369f9772f2
Fix Jewish Calendar unique id migration (#119683)
* Implement correct passing fix

* Keep the test as is, as it simulates the current behavior

* Last minor change
2024-06-17 12:37:30 +02:00
Gedaliah Knizhnik
696a079ba8
Add extra sensor to the Jewish Calendar integration (#116734)
* Added sensor for always three star tzeit

* Changed sensor name

* Change sensor name
2024-06-06 14:17:52 -04:00
Tsvi Mostovicz
98455cbd93
Fix updating options in Jewish Calendar (#118643) 2024-06-04 20:55:38 +02:00
Tsvi Mostovicz
9fc51891ca
Fix YAML deprecation breaking version in jewish calendar and media extractor (#118546)
* Fix YAML deprecation breaking version

* Update

* fix media extractor deprecation as well

* Add issue_domain
2024-05-31 12:35:40 +02:00
Tsvi Mostovicz
12215c51b3
Fix Jewish calendar unique id's (#117985)
* Initial commit

* Fix updating of unique id

* Add testing to check the unique id is being updated correctly

* Reload the config entry and confirm the unique id has not been changed

* Move updating unique_id to __init__.py as suggested

* Change the config_entry variable's name back from config to config_entry

* Move the loop into the update_unique_ids method

* Move test from test_config_flow to test_init

* Try an early optimization to check if we need to update the unique ids

* Mention the correct version

* Implement suggestions

* Ensure all entities are migrated correctly

* Just to be sure keep the previous assertion as well
2024-05-30 18:27:15 +02:00
Tsvi Mostovicz
ea91f7a5aa
Change strings to const in Jewish Calendar (#118274) 2024-05-28 07:49:39 +02:00
Tsvi Mostovicz
1565561c03
Remove platform sensor from Jewish Calendar binary sensor (#118231) 2024-05-27 11:47:08 +02:00
Joost Lekkerkerker
481c50f7a5
Remove platform setup from Jewish calendar (#118226) 2024-05-27 10:51:54 +02:00
Tsvi Mostovicz
11646cab5f
Move Jewish calendar constants to const file (#118180)
* Move Jewish calendar constants to const file

* Add a few missed constants

* Move CONF_LANGUAGE to it's correct path
2024-05-26 19:23:02 +02:00
Yuval Aboulafia
2c09f72c33
Add config flow to Jewish Calendar (#84464)
* Initial commit

* add basic tests (will probably fail)

* Set basic UID for now

* Various improvements

* use new naming convention?

* bit by bit, still not working tho

* Add tz selection

* Remove failing tests

* update unique_id

* add the tests again

* revert to previous binary_sensor test

* remove translations

* apply suggestions

* remove const.py

* Address review

* revert changes

* Initial fixes for tests

* Initial commit

* add basic tests (will probably fail)

* Set basic UID for now

* Various improvements

* use new naming convention?

* bit by bit, still not working tho

* Add tz selection

* Remove failing tests

* update unique_id

* add the tests again

* revert to previous binary_sensor test

* remove translations

* apply suggestions

* remove const.py

* Address review

* revert changes

* Fix bad merges in rebase

* Get tests to run again

* Fixes due to fails in ruff/pylint

* Fix binary sensor tests

* Fix config flow tests

* Fix sensor tests

* Apply review

* Adjust candle lights

* Apply suggestion

* revert unrelated change

* Address some of the comments

* We should only allow a single jewish calendar config entry

* Make data schema easier to read

* Add test and confirm only single entry is allowed

* Move OPTIONS_SCHEMA to top of file

* Add options test

* Simplify import tests

* Test import end2end

* Use a single async_forward_entry_setups statement

* Revert schema updates for YAML schema

* Remove unneeded brackets

* Remove CONF_NAME from config_flow

* Assign hass.data[DOMAIN][config_entry.entry_id] to a local variable before creating the sensors

* Data doesn't have a name remove slugifying of it

* Test that the entry has been created correctly

* Simplify setup_entry

* Use suggested values helper and flatten location dictionary

* Remove the string for name exists as this error doesn't exist

* Remove name from config entry

* Remove _attr_has_entity_name - will be added in a subsequent PR

* Don't override entity id's - we'll fixup the naming later

* Make location optional - will by default revert to the user's home location

* Update homeassistant/components/jewish_calendar/strings.json

Co-authored-by: Erik Montnemery <erik@montnemery.com>

* No need for local lat/long variable

* Return name attribute, will deal with it in another PR

* Revert unique_id changes, will deal with this in a subsequent PR

* Add time zone data description

* Don't break the YAML config until the user has removed it.

* Cleanup initial config flow test

---------

Co-authored-by: Tsvi Mostovicz <ttmost@gmail.com>
Co-authored-by: Erik Montnemery <erik@montnemery.com>
2024-05-24 14:04:17 +02:00
Marc Mueller
905adb2431
Update codespell ignore list (#118018) 2024-05-24 10:24:34 +02:00
Marc Mueller
0e03e591e7
Improve callable annotations (#118024) 2024-05-24 10:24:09 +02:00
Marc Mueller
dc47792ff2
Update codespell to 2.3.0 (#118001) 2024-05-24 08:22:29 +02:00
SLaks
b5cd0e629d
Upgrade to hdate 0.10.8 (#116202)
Co-authored-by: J. Nick Koston <nick@koston.org>
2024-05-07 09:28:54 +02:00
Marc Mueller
59a6035d3f
Add empty line after module docstring [j-m] (#112700) 2024-03-08 09:01:29 -05:00
Jan-Philipp Benecke
1c5be598f5
Run pylint sorted platform check also when platform has type annotations (#111407) 2024-02-25 21:18:07 +01:00
Erik Montnemery
0c2485bc03
Freeze integration entity descriptions (#105984)
Co-authored-by: J. Nick Koston <nick@koston.org>
2023-12-18 16:28:13 -10:00
epenet
7dc5d131b4
Fix lingering timer in jewish_calendar (#92470) 2023-05-04 11:38:24 +02:00
Erik Montnemery
90d7fb8418
Sort manifests 5 (#87026) 2023-02-08 20:35:25 +01:00
Marc Mueller
63d519c1a8
Spelling updates (#82867) 2022-11-28 16:51:43 +01:00
MosheTzvi
875651f32d
Add Chatzot Hayom to Jewish calendar (#76378) 2022-08-31 14:47:23 +02:00
MosheTzvi
8810d3320c
added Hanetz Hachama (#76216)
added missing variable
2022-08-04 10:08:23 -06:00
Chaim Turkel
7251445ffb
Add shabat sensors to jewish_calendar (#57866)
* add shabat sensors

* add shabat sensors

* add shabat sensors

* add shabat sensors

* add shabat sensors

* Remove redundunt classes and combine sensors

* Update homeassistant/components/jewish_calendar/binary_sensor.py

Co-authored-by: Yuval Aboulafia <yuval.abou@gmail.com>

* Update homeassistant/components/jewish_calendar/binary_sensor.py

Co-authored-by: Yuval Aboulafia <yuval.abou@gmail.com>

* updated requirements

* call get_zmanim once

* add type hint to entity description

* fix errors resulted from type hints introduction

* fix mypy error

* use attr for state

* Update homeassistant/components/jewish_calendar/binary_sensor.py

Co-authored-by: Teemu R. <tpr@iki.fi>

* Fix typing

Co-authored-by: Yuval Aboulafia <yuval.abou@gmail.com>
Co-authored-by: Teemu R. <tpr@iki.fi>
2022-07-28 16:19:20 +02:00
Yuval Aboulafia
70e8f81be1
Loop load Jewish Calendar platforms (#70714) 2022-04-28 20:35:42 +02:00
J. Nick Koston
5b755b74fb
Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
epenet
c7cb26cbab
Use Platform enum in load_platform [a-l] (#63750) 2022-01-10 10:30:47 +01:00
epenet
002512f4ff
Use SensorDeviceClass in jewish-calendar (#61827) 2021-12-14 22:12:34 +01:00
Paulus Schoutsen
7b3a7ee2d1
Jewish Calendar: Do not convert datetimes to UTC (#61222) 2021-12-07 23:38:52 -08:00
Franck Nijhof
4e4f6ffa07
Use native datetime value in Jewish Calendar sensors (#59917) 2021-11-18 20:03:16 +01:00
Yuval Aboulafia
a9ccd70e71
Fully type Jewish Calendar (#56232) 2021-10-22 23:11:41 +02:00
Yuval Aboulafia
2fcce7fd12
Bump hdate to 0.10.4 (#58121) 2021-10-20 20:17:46 +02:00
Bram Kragten
86d24bec75
Update icons for MDI 6 (#56170) 2021-09-13 19:29:38 +02:00