Skip to content

Navigation Menu

Sign in
Sign up

fix: empty manufacturer lead to failed parse_device_properties - #359

Open
clansty wants to merge 1 commit into
JeffLIrion:master from
clansty:patch-1
Open

fix: empty manufacturer lead to failed parse_device_properties #359
clansty wants to merge 1 commit into
JeffLIrion:master from
clansty:patch-1

Conversation

@clansty

@clansty clansty commented Dec 10, 2024

Copy link
Copy Markdown

My tv returns empty with getprop ro.product.manufacturer

image

this leads the .strip() removed the empty line and properties will become only 4 lines. _parse_device_properties will stop parsing.

if android version is not parsed, the library will use wrong command to get state and control the device.

I added two echo % line in the begin and end of the "get properties" command to prevent empty manufacturer to be erased by strip

Copy link
Copy Markdown

Needs #361 first

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /