Problem/Motivation
Config contains a key sensor_id.
Once the renaming is landed, it becomes clear that we use the term "plugin":
#2384601: Rename Sensor to SensorPlugin
As a result, references to the plugin under "sensor_id" are even more confusing.
Proposed resolution
Rename sensor_id to plugin_id in all config.yml. (Don't forget Test and optional sensors.)
Rename SensorConfig public $sensor_id to $plugin_id.
At the same time, the sensor_id argument of TestSensorPlugin should be renamed to plugin_id.
SensorListBuilder uses the term sensor_id where i guess it refers to sensor_name. Also some type hinting here would be nice to make the context clearer.
Comments
Comment #1
Anushka-mp commentedsensor_id replaced with plugin_id, all tests are green locally.
Comment #2
Anushka-mp commentedComment #3
miro_dietikerLoooking good, except two wrong renames.
Nope, this is Config, not Plugin, so stay with sensor_ids.
Also, sensor_id remains here.
To be more clear we might want to rename the wrong renames above into other direction... Let's do this in a followup after discussing with Berdir.
Comment #4
Anushka-mp commentedchanges mentioned above is reverted :)
Comment #5
Anushka-mp commentedComment #6
miro_dietikerRerolling. Will commit when passing.
Comment #7
berdirLooks fine.
Comment #8
miro_dietikerCommitted, pushed.