58 Commits

Author SHA1 Message Date
Joost Lekkerkerker
0c9d97c89f Unmark integrations with a config flow as legacy (#160861) 2026-01-13 19:59:39 +01:00
Joost Lekkerkerker
60ba1b0288 Add integration_type service to nmbs (#159844) 2025-12-28 14:59:49 +01:00
Robert Resch
96f84b2b99 Sort homeassistant json files (#155285) 2025-10-28 10:33:10 +01:00
Simon Lamon
93b8cc38d8 Small nmbs sensor attributes refactoring (#145956)
Attributes refactoring
2025-06-02 15:13:23 +02:00
Joost Lekkerkerker
434179ab3f Remove NMBS YAML import (#145733)
* Remove NMBS YAML import

* Remove NMBS YAML import
2025-06-02 15:10:46 +02:00
Simon Lamon
9f5d94046d Fix typing error in NMBS (#141589)
Fix typing error
2025-03-27 19:39:33 +02:00
Norbert Rittel
e0cff8de84 Fix typo "an problem" in nmbs integration (#140151) 2025-03-08 22:21:24 +02:00
Simon Lamon
40099547ef Add typing/async to NMBS (#139002)
* Add typing/async to NMBS

* Fix tests

* Boolean fields

* Update homeassistant/components/nmbs/sensor.py

Co-authored-by: Jorim Tielemans <tielemans.jorim@gmail.com>

---------

Co-authored-by: Shay Levy <levyshay1@gmail.com>
Co-authored-by: Jorim Tielemans <tielemans.jorim@gmail.com>
2025-03-02 17:36:37 +01:00
Erik Montnemery
f83c8de8d3 Update signature of platforms' async_setup_entry (#138201) 2025-02-10 21:08:03 +01:00
Simon Lamon
d9deba3916 Take exclude vias in unique ids for nmbs (#136590) 2025-01-29 14:25:28 +01:00
epenet
ebda2f9994 Standardize homeassistant imports in component (n-p) (#136830) 2025-01-29 12:23:49 +01:00
Joost Lekkerkerker
8db63adc11 Bump ruff to 0.9.1 (#135197) 2025-01-14 11:46:12 +01:00
Erik Montnemery
d333fa320f Fix nmbs sensor unique_id (#135576) 2025-01-14 10:24:48 +01:00
Simon Lamon
8e2b284a7f Add more typings to nmbs sensor (#135359) 2025-01-11 13:04:37 +01:00
Simon Lamon
fd169affd7 Remove code owner for nmbs (#135357) 2025-01-11 12:49:10 +01:00
Simon Lamon
b9259b6f77 Add config flow to NMBS (#121548)
Co-authored-by: Joostlek <joostlek@outlook.com>
2025-01-11 10:31:47 +01:00
Joost Lekkerkerker
11f00895f7 Add legacy to integrations that have not moved to the UI (#131171) 2024-11-22 19:33:50 +01:00
Simon Lamon
be68255ca4 Fix routes with transfer in nmbs integration (#120808) 2024-06-30 15:16:41 +02:00
epenet
c49fce5541 Force alias when importing sensor PLATFORM_SCHEMA (#120536) 2024-06-26 12:14:13 +02:00
Marc Mueller
988c71ecc5 Add empty line after module docstring [n-q] (#112702) 2024-03-08 15:04:07 +01:00
PatrickGlesner
06e36bcff5 Fix NMBS AttributeError (#90525)
* Fix NMBS AttributeError (Issue #90505)

* Set and use API_FAILURE

* Configure the logger to track API failures

* Remove broad exceptions and rewite logging
2023-04-07 12:13:39 +02:00
PatrickGlesner
f72bf73b03 Fix NMBS IndexError (#90365) 2023-03-28 13:19:52 +02:00
PatrickGlesner
56293ad876 Revert "Fix NMBS IndexError" (#90346) 2023-03-27 11:00:52 +02:00
PatrickGlesner
cb74b934dc Fix NMBS IndexError (#89698) 2023-03-15 18:09:39 +01:00
Erik Montnemery
1450b44c63 Sort manifests 7 (#87028) 2023-02-08 20:32:43 +01:00
Franck Nijhof
94755a5773 String formatting and max line length - Part 4 (#84445)
Co-authored-by: jjlawren <jjlawren@users.noreply.github.com>
2022-12-23 13:27:27 +01:00
epenet
55a5e17cf2 Use UnitOfTime in integrations (h-s) (#84289) 2022-12-20 13:21:14 +01:00
Michaël Arnauts
7142b4ecac Fixes some grammar mistakes (#84283) 2022-12-20 11:10:31 +01:00
epenet
6b256bab22 Move attribution to standalone attribute [m-q] (#80518) 2022-10-18 12:49:59 +02:00
epenet
420733a064 Improve entity type hints [n] (#77824) 2022-09-05 07:53:55 -05:00
Tom Barbette
33784446f6 Add nmbs canceled attribute (#57113)
* nmbs: Add canceled attribute

If a train is canceled, change the state to canceled and also add an attribute that can be matched.
Personnaly I look for the attribute and add a "line-through" CSS style to show my train was canceled.

I discovered this was not displayed the hard way :)

Signed-off-by: Tom Barbette <t.barbette@gmail.com>

* Update homeassistant/components/nmbs/sensor.py

canceled must be compared as an int, as suggested by @MartinHjelmare

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>

Co-authored-by: Martin Hjelmare <marhje52@gmail.com>
2022-05-26 18:04:22 +02:00
J. Nick Koston
5b755b74fb Add loggers to integration manifest.json (#65083) 2022-01-28 13:37:53 -08:00
epenet
a2de95197d Add setup type hints [n] (#63462)
Co-authored-by: epenet <epenet@users.noreply.github.com>
2022-01-05 16:38:37 +01:00
Erik Montnemery
103e21c278 Move temperature conversions to sensor base class (5/8) (#54475) 2021-08-12 13:26:17 +02:00
Franck Nijhof
258b388f41 Collection of changing entity properties to class attributes (#51248)
* Collection of changing entity properties to class attributes

* Apply suggestions from code review

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

Co-authored-by: Erik Montnemery <erik@montnemery.com>
2021-05-31 10:50:11 +02:00
Marius
13dee0f028 Mitigate NMBS key errors (#50026)
on Liveboard and connections as documented in issue #48824
2021-05-03 17:06:46 +02:00
Franck Nijhof
055cdc64c0 Add support for IoT class in manifest (#46935) 2021-04-15 10:21:38 +02:00
Erik Montnemery
c900e3030b Migrate integrations n-q to extend SensorEntity (#48214) 2021-03-22 19:46:46 +01:00
Erik Montnemery
14a59d290a Update integrations j-o to override extra_state_attributes() (#47758) 2021-03-11 20:11:25 +01:00
springstan
eae21be5b9 Improve string formatting v6 (#33698) 2020-04-07 23:14:28 +02:00
Thibault Maekelbergh
db2110f0c6 Add some safety checks for property access in NMBS sensor (#33695) 2020-04-06 21:15:29 +02:00
Franck Nijhof
187b6525b4 Removal of extraneous parenthesis (#33637) 2020-04-04 20:08:55 +02:00
Paulus Schoutsen
f1d3c0d19b Remove unused manifest fields (#33595) 2020-04-03 12:58:19 -07:00
springstan
a85808e325 Add and use time related constants (#32065)
* Add and use time related constants

* Sort time constants and reuse them in data rate constants

* Fix greeneyemonitor import

* Fix greeneyemonitor import V2

* Fix failing here_travel_time test

* Add TIME_MONTHS and TIME_YEARS

* Use TIME_MINUTES in opentherm_gw and isy994

* Add and use TIME_MILLISECONDS

* Change inconsistent ones

* Add TIME_MICROSECONDS and TIME_WEEKS

* Use constants in apcupsd and travisci

* Fix import error in upnp sensor.py

* Fix isy994 sensor.py using TIME_YEARS

* Fix dyson tests

* Use TIME_SECONDS in more places

* Use TIME_DAYS in google wifi
2020-02-23 22:09:24 +02:00
Thibault Maekelbergh
64edf2fe33 Create truly live unique id (#31078)
* Create truly live unique id

* Do not generate unique id on basis of name

* Add the station to the default station live name
2020-01-29 12:12:40 +01:00
Ronald Dehuysser
053f18d6ce Add attributes departure_minutes and delay_minutes to the nmbs sensor (#30958)
* Improve sensor for automations

I've updated the sensor so that departure time and delay can be used in automatons.

Before, the departure time and delay time were only available wrapped in strings which makes it difficult to use them in automations. Using the extra attributes, one can easily use them in automations.

* Update homeassistant/components/nmbs/sensor.py

Co-Authored-By: springstan <46536646+springstan@users.noreply.github.com>

* Updates based on review

Changed min to minutes as requested

Co-authored-by: springstan <46536646+springstan@users.noreply.github.com>
2020-01-20 09:51:59 +01:00
Franck Nijhof
dc02c28891 Correct names in manifests (M-P) (#30541) 2020-01-07 13:28:35 +01:00
Franck Nijhof
a84741392b Format all manifests with prettier (#30521) 2020-01-06 21:28:23 +01:00
springstan
0cb468d7b0 Make name of nmbs live sensor customizable via unique_id (#29662)
* Make name customizable for nmbs live sensors

* Change order of the live name

* Added unique id to live nmbs sensor

* Revert changing the name of the live sensor
2019-12-19 17:45:52 +01:00
springstan
3ddd20159c Move imports to top for nmbs (#29365) 2019-12-03 15:46:48 -08:00