Now you have two variables named `default_name` here: One declared inside the `if` and one at the function level. Please pick a new name for one of them. What about "sensor_name"?